we don't use strdup in mutt sources anymore, remove that compat file
[apps/madmutt.git] / strdup.c
diff --git a/strdup.c b/strdup.c
deleted file mode 100644 (file)
index 9920a4a..0000000
--- a/strdup.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright notice from original mutt:
- * [none]
- *
- * This file is part of mutt-ng, see http://www.muttng.org/.
- * It's licensed under the GNU General Public License,
- * please see the file GPL in the top level source directory.
- */
-
-/* ultrix doesn't have strdup */
-
-#include <string.h>
-#include <stdlib.h>
-
-char *strdup (const char *s)
-{                               /* __MEM_CHECKED__ */
-  char *d;
-
-  if (s == NULL)
-    return NULL;
-
-  if ((d = malloc (str_len (s) + 1)) == NULL)    /* __MEM_CHECKED__ */
-    return NULL;
-
-  memcpy (d, s, str_len (s) + 1);
-  return d;
-}