summaryrefslogtreecommitdiffstats
path: root/monop/getinp.c
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2000-07-10 10:19:25 +0000
committeritojun <itojun@NetBSD.org>2000-07-10 10:19:25 +0000
commitf6138c99bc04c12506713ae9badd0552ddfc22e5 (patch)
tree59c555f174e5e4a97d62b958f2a298e0ff2ad570 /monop/getinp.c
parentf17668aabd740a830bddace04403bbcfdfd78de0 (diff)
downloadbsdgames-darwin-f6138c99bc04c12506713ae9badd0552ddfc22e5.tar.gz
bsdgames-darwin-f6138c99bc04c12506713ae9badd0552ddfc22e5.tar.zst
bsdgames-darwin-f6138c99bc04c12506713ae9badd0552ddfc22e5.zip
printf() pedant - do not pass variable alone, use %s.
idea from openbsd. after looking at freebsd commit msgs from kris@freebsd.
Diffstat (limited to 'monop/getinp.c')
-rw-r--r--monop/getinp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/monop/getinp.c b/monop/getinp.c
index 8976ba2f..66457448 100644
--- a/monop/getinp.c
+++ b/monop/getinp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: getinp.c,v 1.8 1999/09/08 21:17:51 jsm Exp $ */
+/* $NetBSD: getinp.c,v 1.9 2000/07/10 10:19:26 itojun Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)getinp.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: getinp.c,v 1.8 1999/09/08 21:17:51 jsm Exp $");
+__RCSID("$NetBSD: getinp.c,v 1.9 2000/07/10 10:19:26 itojun Exp $");
#endif
#endif /* not lint */
@@ -63,7 +63,7 @@ getinp(prompt, list)
for (;;) {
inter:
- printf(prompt);
+ printf("%s", prompt);
for (sp = buf; (c=getchar()) != '\n'; ) {
*sp = c;
if (c == -1) /* check for interupted system call */
@@ -84,7 +84,7 @@ inter:
printf("<RETURN>");
}
else
- printf(list[i]);
+ printf("%s", list[i]);
if (list[i+1])
printf(", ");
else