summaryrefslogtreecommitdiff
path: root/listing.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 15:18:26 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-03 11:02:11 -0800
commit6db8fd556e2562e9a0a821c0d6fd4f7cdcf6266c (patch)
tree45171678d6b1fbfe936bb2586933d3e03c93500a /listing.c
parent299c9762b1dbe53f3297c54e5526aeae767d1a10 (diff)
downloadxorg-app-xkbcomp-6db8fd556e2562e9a0a821c0d6fd4f7cdcf6266c.tar.gz
Mark more pointers as const
Some suggested by cppcheck, others by manual code inspection Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'listing.c')
-rw-r--r--listing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/listing.c b/listing.c
index 3db66f8..e5bca89 100644
--- a/listing.c
+++ b/listing.c
@@ -194,10 +194,10 @@ AddListing(char *file, char *map)
/***====================================================================***/
static void
-ListFile(FILE * outFile, char *fileName, XkbFile * map)
+ListFile(FILE *outFile, const char *fileName, XkbFile *map)
{
unsigned flags;
- char *mapName;
+ const char *mapName;
flags = map->flags;
if ((flags & XkbLC_Hidden) && (!(verboseLevel & WantHiddenMaps)))
@@ -227,7 +227,7 @@ ListFile(FILE * outFile, char *fileName, XkbFile * map)
mapName = NULL;
if (dirsToStrip > 0)
{
- char *tmp, *last;
+ const char *tmp, *last;
int i;
for (i = 0, tmp = last = fileName; (i < dirsToStrip) && tmp; i++)
{
@@ -417,7 +417,7 @@ MapMatches(char *mapToConsider, char *ptrn)
}
int
-GenerateListing(char *out_name)
+GenerateListing(const char *out_name)
{
FILE *outFile;
XkbFile *rtrn;