diff options
author | 2001-06-23 04:32:30 +0000 | |
---|---|---|
committer | 2001-06-23 04:32:30 +0000 | |
commit | 7eb1ad6c06b5aa2a5faee55b03ad3d87112f2afe (patch) | |
tree | 59c9b60f5a474f10155e3e472c8e7365d3021eba | |
parent | slacker slacker lazy bum bum bum slacker! (diff) | |
download | wireguard-openbsd-7eb1ad6c06b5aa2a5faee55b03ad3d87112f2afe.tar.xz wireguard-openbsd-7eb1ad6c06b5aa2a5faee55b03ad3d87112f2afe.zip |
sprinkle some const on theo
-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]; |