aboutsummaryrefslogtreecommitdiff
path: root/src/text
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-15 20:53:07 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-15 20:53:07 -0500
commitedbbfd40714ba9adfd770b9ccb6a0eecdc43a736 (patch)
treea078ac125a8355489083baa458738c3336c30910 /src/text
parentd43d705f4d0dceb503ee04a972929a9f61c85658 (diff)
downloadsok-edbbfd40714ba9adfd770b9ccb6a0eecdc43a736.tar.bz2
sok-edbbfd40714ba9adfd770b9ccb6a0eecdc43a736.zip
fix warnings
Diffstat (limited to 'src/text')
-rw-r--r--src/text/action.c2
-rw-r--r--src/text/draw.c2
-rw-r--r--src/text/main.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/text/action.c b/src/text/action.c
index 9d4cbbc..cb21c34 100644
--- a/src/text/action.c
+++ b/src/text/action.c
@@ -15,7 +15,7 @@
case '8': \
case '9':
-static const sok_dir_t
+static sok_dir_t
key_to_dir(const char c) {
switch (c) {
case 'k': return SOK_DIR_UP;
diff --git a/src/text/draw.c b/src/text/draw.c
index af0a132..9300e24 100644
--- a/src/text/draw.c
+++ b/src/text/draw.c
@@ -95,7 +95,7 @@ draw(
) {
// fill print buffer
if (!sok_ctx_walk(ctx, &DRAW_CBS, NULL)) {
- die("Couldn't print level");
+ die("Couldn't print level %d", (int) level_num);
}
// print title, level, and console
diff --git a/src/text/main.c b/src/text/main.c
index 8e89bed..204da0f 100644
--- a/src/text/main.c
+++ b/src/text/main.c
@@ -78,7 +78,7 @@ int main(int argc, char *argv[]) {
die("Couldn't load level %d", (int) level_num);
}
} else {
- warn("cannot advance to next level");
+ warn("cannot advance to next level %d", (int) level_num);
}
break;
@@ -108,7 +108,7 @@ int main(int argc, char *argv[]) {
// found solution, print it
draw_moves(&ctx, old_num_moves);
} else {
- warn("Couldn't solve level");
+ warn("Couldn't solve level %d", (int) level_num);
}
}