Remove unused xstrdup() function
authorH. Peter Anvin <hpa@zytor.com>
Sun, 6 Jan 2008 04:32:23 +0000 (20:32 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 6 Jan 2008 04:32:23 +0000 (20:32 -0800)
xstrdup.c [deleted file]

diff --git a/xstrdup.c b/xstrdup.c
deleted file mode 100644 (file)
index 036b3b2..0000000
--- a/xstrdup.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * xstrdup.c
- *
- * Simple error-checking version of strdup()
- *
- */
-
-#include "config.h"
-
-char *xstrdup(const char *s)
-{
-  char *p = strdup(s);
-
-  if ( !p ) {
-    fprintf(stderr, "Out of memory!\n");
-    exit(128);
-  }
-
-  return p;
-}