summaryrefslogtreecommitdiff
path: root/src/scan.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/scan.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/scan.c')
-rw-r--r--src/scan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/scan.c b/src/scan.c
index 712f617..98c349c 100644
--- a/src/scan.c
+++ b/src/scan.c
@@ -362,13 +362,13 @@ ScanTransparentColor(
/* end 3.2 bc */
for (key = 1; key <= NKEYS; key++) {
if ((s = mask_defaults[key])) {
- defaults[key] = (char *) xpmstrdup(s);
+ defaults[key] = strdup(s);
if (!defaults[key])
return (XpmNoMemory);
}
}
} else {
- color->c_color = (char *) xpmstrdup(TRANSPARENT_COLOR);
+ color->c_color = strdup(TRANSPARENT_COLOR);
if (!color->c_color)
return (XpmNoMemory);
}
@@ -491,7 +491,7 @@ ScanOtherColors(
found = True;
for (key = 1; key <= NKEYS; key++) {
if ((s = adefaults[key]))
- defaults[key] = (char *) xpmstrdup(s);
+ defaults[key] = strdup(s);
}
}
}
@@ -502,13 +502,13 @@ ScanOtherColors(
colorname = xpmGetRgbName(rgbn, rgbn_max, xcolor->red,
xcolor->green, xcolor->blue);
if (colorname)
- color->c_color = (char *) xpmstrdup(colorname);
+ color->c_color = strdup(colorname);
else {
/* at last store the rgb value */
char buf[BUFSIZ];
sprintf(buf, "#%04X%04X%04X",
xcolor->red, xcolor->green, xcolor->blue);
- color->c_color = (char *) xpmstrdup(buf);
+ color->c_color = strdup(buf);
}
if (!color->c_color) {
XpmFree(xcolors);