diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-23 04:32:31 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-23 04:32:31 +0000 |
commit | 19b59d2f81af0214d454216ae12b9c8027268785 (patch) | |
tree | 7570012e2ea27372ea6212bb6d4ac162cfac1833 /usr.bin/mg | |
parent | 7d60ccafe7ea9e51a95b9daef37390ea45c4e263 (diff) |
sprinkle some const on theo
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/theo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/theo.c b/usr.bin/mg/theo.c index f4db527d67e..fa902d37c2d 100644 --- a/usr.bin/mg/theo.c +++ b/usr.bin/mg/theo.c @@ -50,7 +50,7 @@ theo(int f, int n) return TRUE; } -static char *talk[] = { +static const char *talk[] = { "Write more code.", "Make more commits.", "That's because you have been slacking.", @@ -63,12 +63,12 @@ static char *talk[] = { "slacker slacker lazy bum bum bum slacker!" }; -static int ntalk = sizeof(talk)/sizeof(talk[0]); +static const int ntalk = sizeof(talk)/sizeof(talk[0]); static int theo_analyze(int f, int n) { - char *str; + const char *str; int len; str = talk[arc4random() % ntalk]; |