summaryrefslogtreecommitdiffstats
path: root/sail
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2011-08-16 11:26:16 +0000
committerchristos <christos@NetBSD.org>2011-08-16 11:26:16 +0000
commita7697203a529c2da391fbfadfbe1ddf0f6577aa9 (patch)
tree3a7f548acf6db3584e450984de3cfdf3fb91d59f /sail
parenta4d00d5b72c57ebc93b5b96dc673894fe97cd0e7 (diff)
downloadbsdgames-darwin-a7697203a529c2da391fbfadfbe1ddf0f6577aa9.tar.gz
bsdgames-darwin-a7697203a529c2da391fbfadfbe1ddf0f6577aa9.tar.zst
bsdgames-darwin-a7697203a529c2da391fbfadfbe1ddf0f6577aa9.zip
avoid non-literal format string
Diffstat (limited to 'sail')
-rw-r--r--sail/assorted.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sail/assorted.c b/sail/assorted.c
index 730b16df..7c35d5c6 100644
--- a/sail/assorted.c
+++ b/sail/assorted.c
@@ -1,4 +1,4 @@
-/* $NetBSD: assorted.c,v 1.18 2011/05/23 23:02:07 joerg Exp $ */
+/* $NetBSD: assorted.c,v 1.19 2011/08/16 11:26:16 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)assorted.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: assorted.c,v 1.18 2011/05/23 23:02:07 joerg Exp $");
+__RCSID("$NetBSD: assorted.c,v 1.19 2011/08/16 11:26:16 christos Exp $");
#endif
#endif /* not lint */
@@ -152,25 +152,25 @@ table(struct ship *from, struct ship *on,
send_rigg(on, rigg[0], rigg[1], rigg[2], rigg[3]);
switch (shot) {
case L_ROUND:
- message = "firing round shot on $$";
+ message = "firing round";
break;
case L_GRAPE:
- message = "firing grape shot on $$";
+ message = "firing grape";
break;
case L_CHAIN:
- message = "firing chain shot on $$";
+ message = "firing chain";
break;
case L_DOUBLE:
- message = "firing double shot on $$";
+ message = "firing double";
break;
case L_EXPLODE:
- message = "exploding shot on $$";
+ message = "exploding";
break;
default:
errx(1, "Unknown shot type %d", shot);
}
- makesignal(from, message, on);
+ makesignal(from, "%s shot on $$", on, message);
if (roll == 6 && rig) {
switch(Rhit) {
case 0: