diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-26 21:01:04 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-26 21:01:04 +0100 |
commit | 6ce435e7fce91ef77734e5514d5a90978ce828a2 (patch) | |
tree | 3c2e23dd8f7c51e9e1e4b6788f666cab8384d92c | |
parent | 1c2e3a58ad411bc9dc38715f4b85b42cd3be4a73 (diff) |
WIP/FIX rlc: Use sizeof() for the memset instead of ARRAY_SIZE
In this case both will give the same result but it is better to use
sizeof
-rw-r--r-- | src/rlc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlc.cpp b/src/rlc.cpp index dc5cf8b0..3f2048da 100644 --- a/src/rlc.cpp +++ b/src/rlc.cpp @@ -28,7 +28,7 @@ extern "C" { uint8_t *gprs_rlc_data::prepare(size_t block_data_len) { /* todo.. only set it once if it turns out to be a bottleneck */ - memset(block, 0x0, ARRAY_SIZE(block)); + memset(block, 0x0, sizeof(block)); memset(block, 0x2b, block_data_len); return block; |