Module Name:    xsrc
Committed By:   mrg
Date:           Sun Jul 19 08:52:58 UTC 2015

Modified Files:
        xsrc/external/mit/x11perf/dist: x11perf.c

Log Message:
apply const a little more.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r1.2 xsrc/external/mit/x11perf/dist/x11perf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/x11perf/dist/x11perf.c
diff -u xsrc/external/mit/x11perf/dist/x11perf.c:1.1.1.4 xsrc/external/mit/x11perf/dist/x11perf.c:1.2
--- xsrc/external/mit/x11perf/dist/x11perf.c:1.1.1.4	Sun Jul 19 08:49:00 2015
+++ xsrc/external/mit/x11perf/dist/x11perf.c	Sun Jul 19 08:52:58 2015
@@ -167,7 +167,7 @@ static int GetRops(int argi, int argc, c
 static int GetPops(int argi, int argc, char **argv, int *popsp, int *nump);
 static int GetFormats(int argi, int argc, char **argv, int *formatsp, int *nump);
 static int FormatFromName (char *name);
-static char *NameFromFormat (int format);
+static const char *NameFromFormat (int format);
 
 
 /************************************************
@@ -1399,7 +1399,7 @@ main(int argc, char *argv[])
 					     LABELP(i));
 				}
 			    } else {
-				char *name = NameFromFormat (formats[format]);
+				const char *name = NameFromFormat (formats[format]);
 				sprintf (label, "(%s %s) %s",
 					 popNames[pops[pop]].name,
 					 name,
@@ -1560,7 +1560,7 @@ FormatFromName (char *name)
     return -1;
 }
 
-static char *
+static const char *
 NameFromFormat (int format)
 {
     int i;

Reply via email to