diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-27 18:21:12 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-27 18:21:12 -0700 |
commit | 8b9c4e4c5d278409dc41d19f0c8a8940403cd5c7 (patch) | |
tree | 2ba65bf28e4e3fac2aa8d0c2e2fae319bdd12689 | |
parent | fd620b4f6c59674090b956a9d9e188a1250a4663 (diff) |
xpmReadRgbNames: constify filename argument
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/XpmI.h | 2 | ||||
-rw-r--r-- | src/rgb.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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)); @@ -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[]) { /* |