summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2001-06-23 04:32:30 +0000
committermickey <mickey@openbsd.org>2001-06-23 04:32:30 +0000
commit7eb1ad6c06b5aa2a5faee55b03ad3d87112f2afe (patch)
tree59c9b60f5a474f10155e3e472c8e7365d3021eba
parentslacker slacker lazy bum bum bum slacker! (diff)
downloadwireguard-openbsd-7eb1ad6c06b5aa2a5faee55b03ad3d87112f2afe.tar.xz
wireguard-openbsd-7eb1ad6c06b5aa2a5faee55b03ad3d87112f2afe.zip
sprinkle some const on theo
-rw-r--r--usr.bin/mg/theo.c6
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];