diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-30 20:19:44 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-30 20:19:44 -0700 |
commit | edca92c10572b6bb7dd60db156f545d98373f803 (patch) | |
tree | 0f22fb5c4203c48c2a8d7f6a71692f9b689d791d /fd.c | |
parent | 93812aa7950342c809a9dcbd9d50379c050b51ac (diff) | |
download | xscope-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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))); |