summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-03-27 18:21:12 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-03-27 18:21:12 -0700
commit8b9c4e4c5d278409dc41d19f0c8a8940403cd5c7 (patch)
tree2ba65bf28e4e3fac2aa8d0c2e2fae319bdd12689
parentfd620b4f6c59674090b956a9d9e188a1250a4663 (diff)
xpmReadRgbNames: constify filename argument
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/XpmI.h2
-rw-r--r--src/rgb.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/XpmI.h b/src/XpmI.h
index 4360ad3..70da79e 100644
--- a/src/XpmI.h
+++ b/src/XpmI.h
@@ -254,7 +254,7 @@ FUNC(xpmParseExtensions, int, (xpmData *data, XpmExtension **extensions,
/* RGB utility */
-FUNC(xpmReadRgbNames, int, (char *rgb_fname, xpmRgbName *rgbn));
+FUNC(xpmReadRgbNames, int, (const char *rgb_fname, xpmRgbName *rgbn));
FUNC(xpmGetRgbName, char *, (xpmRgbName *rgbn, int rgbn_max,
int red, int green, int blue));
FUNC(xpmFreeRgbNames, void, (xpmRgbName *rgbn, int rgbn_max));
diff --git a/src/rgb.c b/src/rgb.c
index 729898d..5c350eb 100644
--- a/src/rgb.c
+++ b/src/rgb.c
@@ -57,7 +57,7 @@
*/
int
xpmReadRgbNames(
- char *rgb_fname,
+ const char *rgb_fname,
xpmRgbName rgbn[])
{
FILE *rgbf;
@@ -162,7 +162,7 @@ xpmFreeRgbNames(
int
xpmReadRgbNames(
- char *rgb_fname,
+ const char *rgb_fname,
xpmRgbName rgbn[])
{
/*