summaryrefslogtreecommitdiff
path: root/usr.bin/mg/help.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-24 09:06:22 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-24 09:06:22 +0000
commita749a5a20fdd9c44cc2be9bad13149a8c7e8e316 (patch)
treec189c36f2cbf1429ade88f4d8518fd1accd58c20 /usr.bin/mg/help.c
parentb3a744a8fcb8175169ccd8c4402d6279ae56a421 (diff)
Give the arguments in the right order to keyname.
Diffstat (limited to 'usr.bin/mg/help.c')
-rw-r--r--usr.bin/mg/help.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c
index a61e07a8162..1684c16fa30 100644
--- a/usr.bin/mg/help.c
+++ b/usr.bin/mg/help.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: help.c,v 1.12 2001/05/24 03:05:23 mickey Exp $ */
+/* $OpenBSD: help.c,v 1.13 2001/05/24 09:06:21 art Exp $ */
/*
* Help functions for Mg 2
@@ -135,7 +135,7 @@ showall(BUFFER *bp, KEYMAP *map, char *prefix)
fun = doscan(map, c, &newmap);
if (fun == rescan || fun == selfinsert)
continue;
- keyname(buf, c, sizeof(buf));
+ keyname(buf, sizeof(buf), c);
sprintf(key, "%s%s ", prefix, buf);
if (fun == NULL) {
if (showall(bp, newmap, key) == FALSE)
@@ -218,12 +218,12 @@ findbind(KEYMAP *map, PF fun, char *buf, size_t len)
for (c = 0; c < 256; c++) {
nfun = doscan(map, c, &newmap);
if (nfun == fun) {
- keyname(buf, c, len);
+ keyname(buf, len, c);
return TRUE;
}
if (nfun == NULL) {
if (findbind(newmap, fun, buf2, sizeof(buf2)) == TRUE) {
- keyname(key, c, sizeof(key));
+ keyname(key, sizeof(key), c);
snprintf(buf, len, "%s %s", key, buf2);
return TRUE;
}