summaryrefslogtreecommitdiff
path: root/usr.bin/mg/help.c
diff options
context:
space:
mode:
authorVincent Labrecque <vincent@cvs.openbsd.org>2002-07-01 14:33:45 +0000
committerVincent Labrecque <vincent@cvs.openbsd.org>2002-07-01 14:33:45 +0000
commit71da5f1d37bd5729124da3b8463f6a40f4bcf32a (patch)
tree5600e9a19938d9748a59389c7d3344fdbf94f478 /usr.bin/mg/help.c
parent63f71dfa7943dfa479d153789b8501d6cd17a098 (diff)
KNF + ansi; from zyrnix (only the easy part of his diffs)
Diffstat (limited to 'usr.bin/mg/help.c')
-rw-r--r--usr.bin/mg/help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c
index f16bc79441d..cabbb05894b 100644
--- a/usr.bin/mg/help.c
+++ b/usr.bin/mg/help.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: help.c,v 1.18 2002/06/21 05:37:20 vincent Exp $ */
+/* $OpenBSD: help.c,v 1.19 2002/07/01 14:33:44 vincent Exp $ */
/*
* Help functions for Mg 2
@@ -141,7 +141,7 @@ showall(BUFFER *bp, KEYMAP *map, char *prefix)
if (fun == rescan || fun == selfinsert)
continue;
keyname(buf, sizeof(buf), c);
- snprintf(key, sizeof key, "%s%s ", prefix, buf);
+ (void)snprintf(key, sizeof key, "%s%s ", prefix, buf);
if (fun == NULL) {
if (showall(bp, newmap, key) == FALSE)
return FALSE;
@@ -229,7 +229,7 @@ findbind(KEYMAP *map, PF fun, char *buf, size_t len)
if (nfun == NULL) {
if (findbind(newmap, fun, buf2, sizeof(buf2)) == TRUE) {
keyname(key, sizeof(key), c);
- snprintf(buf, len, "%s %s", key, buf2);
+ (void)snprintf(buf, len, "%s %s", key, buf2);
return TRUE;
}
}