author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 5 Aug 2015 16:05:02 +0000 (18:05 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 5 Aug 2015 16:05:02 +0000 (18:05 +0200) | ||
commit | 4cfce925daf8e81c96c5bca630674f5e1f824067 | |
tree | cddaff424277c7df6e9779e5074de850152297a6 | tree | snapshot |
parent | 57e055803ca05d6aebfcce3132f609e07ccdd5fc | commit | diff |
routeros: fix a small build error pointed out by clang
routeros.c:334:35: error: 'memset' call operates on objects of type 'cr_data_t' (aka 'struct cr_data_s') while the size is based on a different type 'cr_data_t *' (aka 'struct cr_data_s *') [-Werror,-Wsizeof-pointer-memaccess]
memset (router_data, 0, sizeof (router_data));
~~~~~~~~~~~ ^~~~~~~~~~~
routeros.c:334:35: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
memset (router_data, 0, sizeof (router_data));
^~~~~~~~~~~
routeros.c:334:35: error: 'memset' call operates on objects of type 'cr_data_t' (aka 'struct cr_data_s') while the size is based on a different type 'cr_data_t *' (aka 'struct cr_data_s *') [-Werror,-Wsizeof-pointer-memaccess]
memset (router_data, 0, sizeof (router_data));
~~~~~~~~~~~ ^~~~~~~~~~~
routeros.c:334:35: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
memset (router_data, 0, sizeof (router_data));
^~~~~~~~~~~
src/routeros.c | diff | blob | history |