Use 'char' instead of 'char *'.
228 names = (char *) malloc(sizeof(char *) * 1024);
Result of 'malloc' is converted to a pointer of type 'char',
which is incompatible with sizeof operand type 'char *'
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
va_list ap;
size_t max_size = 1024;
- names = (char *) malloc(sizeof(char *) * 1024);
+ names = (char *) malloc(sizeof(char) * 1024);
int len = rbd_list(io_ctx, names, &max_size);
for (i = 0, num_images = 0, cur_name = names; cur_name < names + len; i++) {