diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-03-10 10:20:36 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-03-10 10:20:36 +0000 |
| commit | cf872c750ac9c937cb77d4bb31abf70d1c4afac7 (patch) | |
| tree | c296b2d1a4edbbac7fa1c6e30716f6255975de18 /licence.c | |
| parent | f3bcc430298edf9a72becfb14ee99e924e4ff2c0 (diff) | |
| download | halibut-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 'licence.c')
| -rw-r--r-- | licence.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ #include <stdio.h> -static char *licencetext[] = { +static const char *const licencetext[] = { "Halibut is copyright (c) 1999-2005 Simon Tatham and James Aylett.", "", "Permission is hereby granted, free of charge, to any person", @@ -30,7 +30,7 @@ static char *licencetext[] = { }; void licence(void) { - char **p; + const char *const *p; for (p = licencetext; *p; p++) puts(*p); } |