aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/sorted-doc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/sorted-doc.c')
-rw-r--r--lib-src/sorted-doc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/sorted-doc.c b/lib-src/sorted-doc.c
index 595633b76d8..db3f3029532 100644
--- a/lib-src/sorted-doc.c
+++ b/lib-src/sorted-doc.c
@@ -65,7 +65,7 @@ struct docstr /* Allocated thing for an entry. */
65/* Print error message. `s1' is printf control string, `s2' is arg for it. */ 65/* Print error message. `s1' is printf control string, `s2' is arg for it. */
66 66
67void 67void
68error (char *s1, char *s2) 68error (const char *s1, const char *s2)
69{ 69{
70 fprintf (stderr, "sorted-doc: "); 70 fprintf (stderr, "sorted-doc: ");
71 fprintf (stderr, s1, s2); 71 fprintf (stderr, s1, s2);
@@ -75,7 +75,7 @@ error (char *s1, char *s2)
75/* Print error message and exit. */ 75/* Print error message and exit. */
76 76
77void 77void
78fatal (char *s1, char *s2) 78fatal (const char *s1, const char *s2)
79{ 79{
80 error (s1, s2); 80 error (s1, s2);
81 exit (EXIT_FAILURE); 81 exit (EXIT_FAILURE);
@@ -117,7 +117,7 @@ enum state
117 WAITING, BEG_NAME, NAME_GET, BEG_DESC, DESC_GET 117 WAITING, BEG_NAME, NAME_GET, BEG_DESC, DESC_GET
118}; 118};
119 119
120char *states[] = 120const char *states[] =
121{ 121{
122 "WAITING", "BEG_NAME", "NAME_GET", "BEG_DESC", "DESC_GET" 122 "WAITING", "BEG_NAME", "NAME_GET", "BEG_DESC", "DESC_GET"
123}; 123};