git://wimlib.net
/
wimlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5199659
)
buffer_io.h: Remove unnecessary casting
author
Eric Biggers
<ebiggers3@gmail.com>
Fri, 22 Mar 2013 15:47:24 +0000
(10:47 -0500)
committer
Eric Biggers
<ebiggers3@gmail.com>
Fri, 22 Mar 2013 15:47:24 +0000
(10:47 -0500)
src/buffer_io.h
patch
|
blob
|
history
diff --git
a/src/buffer_io.h
b/src/buffer_io.h
index 9a38286c35563d945bf37d698a56898eab361da7..4a247ba5f4da9504ad89a74f8c5fd5e618a38623 100644
(file)
--- a/
src/buffer_io.h
+++ b/
src/buffer_io.h
@@
-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 */