summaryrefslogtreecommitdiff
path: root/fd.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-30 20:19:44 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-30 20:19:44 -0700
commitedca92c10572b6bb7dd60db156f545d98373f803 (patch)
tree0f22fb5c4203c48c2a8d7f6a71692f9b689d791d /fd.c
parent93812aa7950342c809a9dcbd9d50379c050b51ac (diff)
downloadxscope-edca92c10572b6bb7dd60db156f545d98373f803.tar.gz
Stop wrapping malloc & free
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
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)));