summaryrefslogtreecommitdiff
path: root/fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'fd.c')
-rw-r--r--fd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fd.c b/fd.c
index 5096e70..395bbbb 100644
--- a/fd.c
+++ b/fd.c
@@ -105,10 +105,9 @@ InitializeFD(void)
}
/* allocate space for a File Descriptor (FD) Table */
- FDD = (struct FDDescriptor *)
- Malloc ((long)(MaxFD * sizeof (struct FDDescriptor)));
+ FDD = malloc (MaxFD * sizeof (struct FDDescriptor));
if (FDD == NULL) {
- panic("Can't allocate memory!");
+ panic("Can't allocate memory for file descriptor table");
}
bzero(FDD, (MaxFD * sizeof (struct FDDescriptor)));