summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];