diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-11-24 13:52:26 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-11-24 13:52:26 +0100 |
commit | e422ca0f292d08a873deacdbffbb6c6cbd79f88a (patch) | |
tree | 09bd32db472addf4fd7a1f497892f95e1c4cb858 /lib/unaligned.h | |
parent | 5126380beace4e39578f005fe115917b8e8b8ff3 (diff) |
Some consts for function arguments
Patch from Pavel Tvrdik
Diffstat (limited to 'lib/unaligned.h')
-rw-r--r-- | lib/unaligned.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unaligned.h b/lib/unaligned.h index a2dbae4f..dc777fbf 100644 --- a/lib/unaligned.h +++ b/lib/unaligned.h @@ -20,7 +20,7 @@ #include "lib/string.h" static inline u16 -get_u16(void *p) +get_u16(const void *p) { u16 x; memcpy(&x, p, 2); @@ -28,7 +28,7 @@ get_u16(void *p) } static inline u32 -get_u32(void *p) +get_u32(const void *p) { u32 x; memcpy(&x, p, 4); |