summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-03-10 10:20:36 +0000
committerSimon Tatham <anakin@pobox.com>2005-03-10 10:20:36 +0000
commitcf872c750ac9c937cb77d4bb31abf70d1c4afac7 (patch)
treec296b2d1a4edbbac7fa1c6e30716f6255975de18 /help.c
parentf3bcc430298edf9a72becfb14ee99e924e4ff2c0 (diff)
downloadhalibut-cf872c750ac9c937cb77d4bb31abf70d1c4afac7.zip
halibut-cf872c750ac9c937cb77d4bb31abf70d1c4afac7.tar.gz
halibut-cf872c750ac9c937cb77d4bb31abf70d1c4afac7.tar.bz2
halibut-cf872c750ac9c937cb77d4bb31abf70d1c4afac7.tar.xz
Explicitly constify a bunch of static data declarations which were
conceptually const but not declared as such. Halibut is now back to the practically-speaking-pointless but rather satisfying status of having no global writable data whatsoever :-) [originally from svn r5476] [this svn revision also touched charset,filter,timber]
Diffstat (limited to 'help.c')
-rw-r--r--help.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/help.c b/help.c
index e31f784..8db2859 100644
--- a/help.c
+++ b/help.c
@@ -5,7 +5,7 @@
#include <stdio.h>
#include "halibut.h"
-static char *helptext[] = {
+static const char *const helptext[] = {
"usage: halibut [options] files",
"options: --text[=filename] generate plain text output",
" --html[=filename] generate XHTML output",
@@ -24,19 +24,19 @@ static char *helptext[] = {
NULL
};
-static char *usagetext[] = {
+static const char *const usagetext[] = {
"usage: halibut [--format[=filename]] [options] file.but [file.but...]",
NULL
};
void help(void) {
- char **p;
+ const char *const *p;
for (p = helptext; *p; p++)
puts(*p);
}
void usage(void) {
- char **p;
+ const char *const *p;
for (p = usagetext; *p; p++)
puts(*p);
}