]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
CrushWrapper.cc: fix sizeof() call in calloc
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 10 May 2014 08:50:32 +0000 (10:50 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 10 May 2014 08:50:32 +0000 (10:50 +0200)
commiteb2def87f85e51fc4b33aa1f2ad06042f51517b7
treed1da7600c2da1c8c1a1c30e7d9e5bcd47e7ffebc
parentbc8d5f42be4299a869c24b8d10584dcaca28b571
CrushWrapper.cc: fix sizeof() call in calloc

Use __u32 instead of __s32 due to type of bucket->parm to fix:

1028 bucket->perm = (__u32*)calloc(1, bucket->size * sizeof(__s32));
     Result of 'calloc' is converted to a pointer of type '__u32',
     which is incompatible with sizeof operand type '__s32'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/crush/CrushWrapper.cc