t = sizeof(struct acl_accessList) + (nEntries -
1) * sizeof(struct acl_accessEntry);
if (GetFromList(&freeList, &e, t) < 0) {
- e = (struct freeListEntry *)malloc(t + sizeof(int) +
- sizeof(struct freeListEntry *));
+ e = malloc(t + sizeof(int) + sizeof(struct freeListEntry *));
if (e == NULL) {
perror("acl_NewACL: malloc() failed");
abort();
* name plus decimal 2**32 (for largest rights mask) plus some formatting */
if (GetFromList(&freeList, &e, t)) {
- e = (struct freeListEntry *)malloc(t + sizeof(int) +
- sizeof(struct freeListEntry *));
+ e = malloc(t + sizeof(int) + sizeof(struct freeListEntry *));
if (e == NULL) {
perror("acl_NewExternalACL(): malloc() failed");
abort();
return 0;
}
lnames.namelist_len = (*acl)->total;
- lnames.namelist_val =
- (prname *) malloc(lnames.namelist_len * PR_MAXNAMELEN);
+ lnames.namelist_val = malloc(lnames.namelist_len * PR_MAXNAMELEN);
if (lnames.namelist_val == 0) {
return -1;
}