buffer_io.h: Remove unnecessary casting
authorEric Biggers <ebiggers3@gmail.com>
Fri, 22 Mar 2013 15:47:24 +0000 (10:47 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 22 Mar 2013 15:47:24 +0000 (10:47 -0500)
src/buffer_io.h

index 9a38286..4a247ba 100644 (file)
@@ -121,12 +121,12 @@ get_bytes(const void *p, size_t num_bytes, void *res)
 static inline void *
 put_zeroes(void *p, size_t num_bytes)
 {
-       return (u8*)memset(p, 0, num_bytes) + num_bytes;
+       return memset(p, 0, num_bytes) + num_bytes;
 }
 
 static inline void *
 put_bytes(void *p, size_t num_bytes, const void *input)
 {
-       return (u8*)memcpy(p, input, num_bytes) + num_bytes;
+       return memcpy(p, input, num_bytes) + num_bytes;
 }
 #endif /* _WIMLIB_BUFFER_IO_H */