bulkaddrs_val is a pointer to an array of unsigned ints, not to
an array of ints. Fix the sizeof() used in the call to malloc to silence
a clang warning.
Change-Id: If39f34756984200fed1cd3f3de5833012b86af21
Reviewed-on: http://gerrit.openafs.org/9149
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
VLog(5, ("GetAddrs\n"));
addrsp->bulkaddrs_val = taddrp =
- malloc(sizeof(afs_int32) * (MAXSERVERID + 1));
+ malloc(sizeof(afs_uint32) * (MAXSERVERID + 1));
nservers = *nentries = addrsp->bulkaddrs_len = 0;
if (!taddrp) {
goto abort;
}
addrsp->bulkaddrs_val = taddrp =
- malloc(sizeof(afs_int32) * (MAXSERVERID + 1));
+ malloc(sizeof(afs_uint32) * (MAXSERVERID + 1));
nservers = *nentries = addrsp->bulkaddrs_len = 0;
if (!taddrp) {
code = VL_NOMEM;