]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test_librbd.cc: fix sizeof() in malloc call
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 10 May 2014 08:58:56 +0000 (10:58 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 10 May 2014 08:58:56 +0000 (10:58 +0200)
commitfe750755740a8fc70e54cfbe4f0414b4f2ed4079
tree1649983445556c39e445feb6d9c53a64e91e0065
parenteb2def87f85e51fc4b33aa1f2ad06042f51517b7
test_librbd.cc: fix sizeof() in malloc call

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>
src/test/librbd/test_librbd.cc