summaryrefslogtreecommitdiff
path: root/usr.bin/mg/help.c
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2005-12-13 05:40:34 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2005-12-13 05:40:34 +0000
commita70795dc296ec462bcdfe2f565715e5f41482cba (patch)
tree94195eebfbc9a54cbf38436da2a5cfbd9d1e566d /usr.bin/mg/help.c
parent6c0d3259f36f396384a2be08bb8a83952b0ca661 (diff)
do some silly de-linting
Diffstat (limited to 'usr.bin/mg/help.c')
-rw-r--r--usr.bin/mg/help.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c
index 7a1c5d5457b..d84e5045578 100644
--- a/usr.bin/mg/help.c
+++ b/usr.bin/mg/help.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: help.c,v 1.27 2005/11/18 20:56:53 deraadt Exp $ */
+/* $OpenBSD: help.c,v 1.28 2005/12/13 05:40:33 kjell Exp $ */
/* This file is in the public domain. */
@@ -31,24 +31,24 @@ desckey(int f, int n)
PF funct;
int c, m, i, num;
char *pep;
- char prompt[80];
+ char dprompt[80];
#ifndef NO_MACRO
if (inmacro)
return (TRUE); /* ignore inside keyboard macro */
#endif /* !NO_MACRO */
- num = strlcpy(prompt, "Describe key briefly: ", sizeof(prompt));
- if (num >= sizeof(prompt))
- num = sizeof(prompt) - 1;
- pep = prompt + num;
+ num = strlcpy(dprompt, "Describe key briefly: ", sizeof(dprompt));
+ if (num >= sizeof(dprompt))
+ num = sizeof(dprompt) - 1;
+ pep = dprompt + num;
key.k_count = 0;
m = curbp->b_nmodes;
curmap = curbp->b_modes[m]->p_map;
for (;;) {
for (;;) {
- ewprintf("%s", prompt);
+ ewprintf("%s", dprompt);
pep[-1] = ' ';
- pep = keyname(pep, sizeof(prompt) - (pep - prompt),
+ pep = keyname(pep, sizeof(dprompt) - (pep - dprompt),
key.k_chars[key.k_count++] = c = getkey(FALSE));
if ((funct = doscan(curmap, c, &curmap)) != NULL)
break;