summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-19 14:53:05 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-19 14:53:05 -0800
commitbdb6c75fd667e43ce228f1a32e930a0f2966f29d (patch)
treecf6bf612c0e3132cc94c45dab2b2efe9035f7a63 /src/misc.c
parent73b69d794d98e0ccfada48836c4b28280353180f (diff)
Remove xpmstrdup fallback for strdupHEADmaster
It has never been used in the autoconf builds Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/misc.c b/src/misc.c
index e5bc0f6..5a26646 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -37,24 +37,6 @@
#endif
#include "XpmI.h"
-#ifdef NEED_STRDUP
-/*
- * in case strdup is not provided by the system here is one
- * which does the trick
- */
-char *
-xpmstrdup(char *s1)
-{
- char *s2;
- size_t l = strlen(s1) + 1;
-
- if (s2 = (char *) XpmMalloc(l))
- strcpy(s2, s1);
- return s2;
-}
-
-#endif
-
unsigned int
xpmatoui(
register char *p,