summaryrefslogtreecommitdiff
path: root/xmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/xmalloc.c b/xmalloc.c
index d5805b8..02d6ce4 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -141,11 +141,3 @@ char *xstrndup(const char *str, size_t size)
return cp;
}
-
-int xdup(int fd)
-{
- int ret = dup(fd);
- if (unlikely(ret < 0))
- panic("xdup: dup failed\n");
- return ret;
-}