}
/* Insert this id but return not found. */
- newChain = (struct idchain *)malloc(sizeof(struct idchain));
+ newChain = malloc(sizeof(struct idchain));
if (!newChain) {
return ENOMEM;
} else {
}
alist->idlist_len = entries;
- alist->idlist_val = (afs_int32 *) malloc(sizeof(afs_int32) * entries);
+ alist->idlist_val = malloc(sizeof(afs_int32) * entries);
if (!alist->idlist_val) {
return ENOMEM;
}
if (code) {
return code;
}
- stack = (afs_int32 *) malloc(sizeof(afs_int32) * maxstack);
+ stack = malloc(sizeof(afs_int32) * maxstack);
if (!stack) {
code = ENOMEM;
goto done;