diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-08-24 03:12:35 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-08-24 03:12:35 +0000 |
commit | 9e7567a48ac8c03551267815399d48888df4f88a (patch) | |
tree | 4da8a2385f37093ac0dbe2183c0c016affca7266 /converter/other/fiasco/lib | |
parent | 4202f1180bb6951338e094912586c9780ec8b044 (diff) | |
download | netpbm-mirror-9e7567a48ac8c03551267815399d48888df4f88a.tar.gz netpbm-mirror-9e7567a48ac8c03551267815399d48888df4f88a.tar.xz netpbm-mirror-9e7567a48ac8c03551267815399d48888df4f88a.zip |
Remove superfluous code for systems with no strdup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2258 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/fiasco/lib')
-rw-r--r-- | converter/other/fiasco/lib/misc.c | 16 | ||||
-rw-r--r-- | converter/other/fiasco/lib/misc.h | 4 |
2 files changed, 0 insertions, 20 deletions
diff --git a/converter/other/fiasco/lib/misc.c b/converter/other/fiasco/lib/misc.c index 11e2da54..782ed1e9 100644 --- a/converter/other/fiasco/lib/misc.c +++ b/converter/other/fiasco/lib/misc.c @@ -396,22 +396,6 @@ memmove (void *v_dst, const void *v_src, size_t n) } #endif /* not HAVE_MEMMOVE */ -#ifndef HAVE_STRDUP -char * -strdup (const char *s) -/* - * Duplicate given string 's'. - * - * Return value: - * pointer to new string value - */ -{ - assert (s); - - return strcpy (Calloc (strlen (s) + 1, sizeof (char)), s); -} -#endif /* not HAVE_STRDUP */ - /* Note that some systems have a "log2()" in the math library and some have a "log2" macro. So we name ours Log2. But to avoid lots of differences from the original fiasco source code, we define a diff --git a/converter/other/fiasco/lib/misc.h b/converter/other/fiasco/lib/misc.h index 29456590..28fd8b5a 100644 --- a/converter/other/fiasco/lib/misc.h +++ b/converter/other/fiasco/lib/misc.h @@ -72,10 +72,6 @@ memmove(void *dest, const void *src, size_t n); double Log2 (double x); -#ifndef HAVE_STRDUP -char * -strdup (const char *s); -#endif #ifndef HAVE_STRCASECMP bool_t strcaseeq (const char *s1, const char *s2); |