Parent: 53b22f4480e49e7711eb477e2c2312670067f0a0
Author: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Committer: Szymon Janc <szymon.janc@tieto.com>
Date: 2014-07-04 17:46:51
Tree: 79290c48d61537d6695a317597a340772417dd15
android/gatt: Fix warning by rearranging allocation We need to allocate array of uint8_t so fix allocation parameter, this also removes unneeded type conversion. This fixes clang warnings: ... android/gatt.c:5967:29: warning: Result of 'calloc' is converted to a pointer of type 'uint8_t', which is incompatible with sizeof operand type 'uint16_t' entry->value = (uint8_t *) new0(uint16_t, 1); ~~~~~~~~~ ^~~~~~~~~~~~~~~~~ ./src/shared/util.h:81:26: note: expanded from macro 'new0' ^~~~~~ ~~~~~~~~~ ...
Diffstat
| M | android/gatt.c | | | 2 | +- |
1 files changed, 1 insertions(+), 1 deletions(-)