/*
* Otherwise, we make a new item and plug in the new data.
*/
- tlist = (struct AclEntry *)malloc(sizeof(struct AclEntry));
+ tlist = malloc(sizeof(struct AclEntry));
strcpy(tlist->name, a_name);
tlist->rights = a_rights;
if (a_plus) {
struct Acl *tp;
- tp = (struct Acl *)malloc(sizeof(struct Acl));
+ tp = malloc(sizeof(struct Acl));
tp->nplus = tp->nminus = 0;
tp->pluslist = tp->minuslist = 0;
return (tp);
/*
* Allocate and initialize the first entry.
*/
- 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(a_str, "%100s %d", tname, &trights);
a_str = SkipLine(a_str);
- 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(a_str, "%100s %d", tname, &trights);
a_str = SkipLine(a_str);
- tl = (struct AclEntry *)malloc(sizeof(struct AclEntry));
+ tl = malloc(sizeof(struct AclEntry));
if (!first)
first = tl;
strcpy(tl->name, tname);