int avail = *availp;
avail += IOPS_DEBUG_MALLOC_STEP;
if (avail == IOPS_DEBUG_MALLOC_STEP)
- iops_debug[index] =
- (iops_debug_t *) malloc(avail * sizeof(iops_debug_t));
+ iops_debug[index] = malloc(avail * sizeof(iops_debug_t));
else
iops_debug[index] = realloc(*iops, avail * sizeof(iops_debug_t));
if (!iops_debug[index]) {
if (!ins)
ins = 1;
#endif
- if (!(inbuffer = (char *)malloc(ins)))
+ if (!(inbuffer = malloc(ins)))
return (-1); /* helpless here */
if (data->in_size)
memcpy(inbuffer, data->in, data->in_size);
sscanf(astr, "%d", &nminus);
astr = RSkipLine(astr);
- ta = (struct Acl *)malloc(sizeof(struct Acl));
+ ta = malloc(sizeof(struct Acl));
ta->nplus = nplus;
ta->nminus = nminus;
for (i = 0; i < nplus; i++) {
sscanf(astr, "%100s %d", tname, &trights);
astr = RSkipLine(astr);
- tl = (struct AclEntry *)malloc(sizeof(struct AclEntry));
+ tl = malloc(sizeof(struct AclEntry));
if (!first)
first = tl;
strcpy(tl->name, tname);
for (i = 0; i < nminus; i++) {
sscanf(astr, "%100s %d", tname, &trights);
astr = RSkipLine(astr);
- tl = (struct AclEntry *)malloc(sizeof(struct AclEntry));
+ tl = malloc(sizeof(struct AclEntry));
if (!first)
first = tl;
strcpy(tl->name, tname);
*errornumber = 0;
SETCLIENTCONTEXT(blob, rx_HostOf(rx_PeerOf(rx_ConnectionOf(call))), creds->uid,
creds->group0, creds->group1, cmd, NFS_EXPORTER);
- data.in =
- (char *)malloc(InData->rmtbulk_len +
- PIOCTL_HEADER * sizeof(afs_int32));
+ data.in = malloc(InData->rmtbulk_len + PIOCTL_HEADER * sizeof(afs_int32));
if (!data.in)
return (-1); /* helpless here */
if (!strcmp(path, NIL_PATHP))