diff options
Diffstat (limited to 'hw3/xwrap.c')
-rw-r--r-- | hw3/xwrap.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/hw3/xwrap.c b/hw3/xwrap.c index bff218e..7a8a5b6 100644 --- a/hw3/xwrap.c +++ b/hw3/xwrap.c @@ -46,14 +46,3 @@ void* xmalloc (size_t size) { return memptr; } - -void* xrealloc (void* ptr, size_t size) { - void* newptr; - - while ((newptr = realloc (ptr, size)) == NULL) { - nanosleep (&(struct timespec) { RETRY_SEC, RETRY_NSEC }, NULL); - write (STDERR_FILENO, fail_msg, fail_len); - } - - return newptr; -} |