summaryrefslogtreecommitdiffstats
path: root/mille
diff options
context:
space:
mode:
authortron <tron@NetBSD.org>2011-08-26 09:01:07 +0000
committertron <tron@NetBSD.org>2011-08-26 09:01:07 +0000
commit6ec88aa970f7ab9c74f4cecdaab2ad56997bfca2 (patch)
tree31d839f2991e9e31cb2c3b5f7fc7ad2b859bdbf2 /mille
parent9e7fd816e02e66962d482b02209f112e1d5789fc (diff)
downloadbsdgames-darwin-6ec88aa970f7ab9c74f4cecdaab2ad56997bfca2.tar.gz
bsdgames-darwin-6ec88aa970f7ab9c74f4cecdaab2ad56997bfca2.tar.zst
bsdgames-darwin-6ec88aa970f7ab9c74f4cecdaab2ad56997bfca2.zip
Avoid non-literal format strings.
Diffstat (limited to 'mille')
-rw-r--r--mille/save.c6
-rw-r--r--mille/varpush.c10
2 files changed, 8 insertions, 8 deletions
diff --git a/mille/save.c b/mille/save.c
index c9ae1967..0785254c 100644
--- a/mille/save.c
+++ b/mille/save.c
@@ -1,4 +1,4 @@
-/* $NetBSD: save.c,v 1.15 2010/04/04 00:08:49 christos Exp $ */
+/* $NetBSD: save.c,v 1.16 2011/08/26 09:01:07 tron Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: save.c,v 1.15 2010/04/04 00:08:49 christos Exp $");
+__RCSID("$NetBSD: save.c,v 1.16 2011/08/26 09:01:07 tron Exp $");
#endif
#endif /* not lint */
@@ -113,7 +113,7 @@ over:
return FALSE;
if ((outfd = creat(buf, 0644)) < 0) {
- error(strerror(errno));
+ error("%s", strerror(errno));
return FALSE;
}
mvwaddstr(Score, ERR_Y, ERR_X, buf);
diff --git a/mille/varpush.c b/mille/varpush.c
index 8b71d9a7..3835c475 100644
--- a/mille/varpush.c
+++ b/mille/varpush.c
@@ -1,4 +1,4 @@
-/* $NetBSD: varpush.c,v 1.10 2009/05/25 23:34:50 dholland Exp $ */
+/* $NetBSD: varpush.c,v 1.11 2011/08/26 09:01:07 tron Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)varpush.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: varpush.c,v 1.10 2009/05/25 23:34:50 dholland Exp $");
+__RCSID("$NetBSD: varpush.c,v 1.11 2011/08/26 09:01:07 tron Exp $");
#endif
#endif /* not lint */
@@ -70,12 +70,12 @@ varpush(int file, ssize_t (*func)(int, const struct iovec *, int))
};
if (((func)(file, vec, sizeof(vec) / sizeof(vec[0]))) < 0) {
- error(strerror(errno));
+ error("%s", strerror(errno));
return FALSE;
}
if (func == readv) {
if ((read(file, (void *) &temp, sizeof temp)) < 0) {
- error(strerror(errno));
+ error("%s", strerror(errno));
return FALSE;
}
Topcard = &Deck[temp];
@@ -96,7 +96,7 @@ over:
} else {
temp = Topcard - Deck;
if ((write(file, (void *) &temp, sizeof temp)) < 0) {
- error(strerror(errno));
+ error("%s", strerror(errno));
return FALSE;
}
}