mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Make -Wformat=2 happier with a few foo(str) -> foo("%s", str) fixes
ok beck@
This commit is contained in:
parent
835318a0bc
commit
aea4406c4f
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: assorted.c,v 1.6 2012/12/05 23:19:50 deraadt Exp $ */
|
||||
/* $OpenBSD: assorted.c,v 1.7 2015/09/27 05:07:06 guenther Exp $ */
|
||||
/* $NetBSD: assorted.c,v 1.3 1995/04/22 10:36:45 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -157,7 +157,7 @@ table(rig, shot, hittable, on, from, roll)
|
||||
default:
|
||||
errx(1, "Unknown shot type %d", shot);
|
||||
}
|
||||
makesignal(from, message, on);
|
||||
makesignal(from, "%s", on, message);
|
||||
if (roll == 6 && rig) {
|
||||
switch(Rhit) {
|
||||
case 0:
|
||||
@ -184,7 +184,7 @@ table(rig, shot, hittable, on, from, roll)
|
||||
default:
|
||||
errx(1, "Bad Rhit = %d", Rhit);
|
||||
}
|
||||
makemsg(on, message);
|
||||
makemsg(on, "%s", message);
|
||||
} else if (roll == 6) {
|
||||
switch (Hhit) {
|
||||
case 0:
|
||||
@ -212,7 +212,7 @@ table(rig, shot, hittable, on, from, roll)
|
||||
default:
|
||||
errx(1, "Bad Hhit = %d", Hhit);
|
||||
}
|
||||
makemsg(on, message);
|
||||
makemsg(on, "%s", message);
|
||||
}
|
||||
/*
|
||||
if (Chit > 1 && on->file->readyL&R_INITIAL && on->file->readyR&R_INITIAL) {
|
||||
|
Loading…
Reference in New Issue
Block a user