X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fvolser%2Fvolprocs.c;h=c002b3233d3365ef88fb4606514e89d3efa781ac;hp=71d89f7fc505f9e24425ba610179d9a44aecfca5;hb=bdd8187c040ac3898fe5ae4429b5408f04c685d1;hpb=9efc255ab8de7ad90c7d599fea7bd1956bfd48c2 diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index 71d89f7..c002b32 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -1798,7 +1798,7 @@ VolGetName(struct rx_call *acid, afs_int32 atrans, char **aname) TRELE(tt); return E2BIG; } - *aname = (char *)realloc(*aname, len); + *aname = realloc(*aname, len); strcpy(*aname, td->name); TClearRxCall(tt); if (TRELE(tt)) @@ -2595,9 +2595,8 @@ VolListVolumes(struct rx_call *acid, afs_int32 partid, afs_int32 flags, if ((allocSize - volumeInfo->volEntries_len) < 5) { /*running out of space, allocate more space */ allocSize = (allocSize * 3) / 2; - pntr = - (volintInfo *) realloc((char *)volumeInfo->volEntries_val, - allocSize * sizeof(volintInfo)); + pntr = realloc(volumeInfo->volEntries_val, + allocSize * sizeof(volintInfo)); if (pntr == NULL) { closedir(dirp); return VOLSERNO_MEMORY; @@ -2844,11 +2843,8 @@ VolMonitor(struct rx_call *acid, transDebugEntries *transInfo) transInfo->transDebugEntries_len += 1; if ((allocSize - transInfo->transDebugEntries_len) < 5) { /*alloc some more space */ allocSize = (allocSize * 3) / 2; - pntr = - (transDebugInfo *) realloc((char *)transInfo-> - transDebugEntries_val, - allocSize * - sizeof(transDebugInfo)); + pntr = realloc(transInfo->transDebugEntries_val, + allocSize * sizeof(transDebugInfo)); transInfo->transDebugEntries_val = pntr; pntr = transInfo->transDebugEntries_val +