diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-10-02 15:10:58 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-10-02 15:10:58 +0000 |
commit | 2dcdf7b8850b6435cd6339f6c77a2e83f52b76f3 (patch) | |
tree | e994502a31e93005521a4d058481741fd6b7cf33 /lib/libpamcolor.c | |
parent | 78d7ff61d197ed876cc6e0c31611d8ddcf2a1fe1 (diff) | |
download | netpbm-mirror-2dcdf7b8850b6435cd6339f6c77a2e83f52b76f3.tar.gz netpbm-mirror-2dcdf7b8850b6435cd6339f6c77a2e83f52b76f3.tar.xz netpbm-mirror-2dcdf7b8850b6435cd6339f6c77a2e83f52b76f3.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3372 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/libpamcolor.c')
-rw-r--r-- | lib/libpamcolor.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libpamcolor.c b/lib/libpamcolor.c index 49abd063..f9add1a1 100644 --- a/lib/libpamcolor.c +++ b/lib/libpamcolor.c @@ -14,10 +14,6 @@ #define _FILE_OFFSET_BITS 64 #define _LARGE_FILES -#define _DEFAULT_SOURCE 1 /* New name for SVID & BSD source defines */ -#define _BSD_SOURCE 1 /* Make sure strdup() is in string.h */ -#define _XOPEN_SOURCE 500 /* Make sure strdup() is in string.h */ - #include <string.h> #include <limits.h> #include <math.h> @@ -415,8 +411,8 @@ pnm_colorname(struct pam * const pamP, colorname = ppm_colorname(&colorp, pamP->maxval, hexok); - retval = strdup(colorname); - if (retval == NULL) + retval = pm_strdup(colorname); + if (retval == pm_strsol) pm_error("Couldn't get memory for color name string"); return retval; |