Fix unused parameter
Fix unused variable warnings
Use void* instead of char* for random data pointers
Fix -Wshadow
Use early return
Don't compare to NULL for boolean pointer checks
Formatting changes
Remove unnecessary typedef