summaryrefslogtreecommitdiff
path: root/usr.bin/mg/help.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-18 20:56:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-18 20:56:54 +0000
commit32bcb7ccf95d4bd90f6df5701598a8ac2f4b7d7c (patch)
treebf7e2733396f8e05361873bd531fa00b54309fa8 /usr.bin/mg/help.c
parent8130188ef7f4e6c63aa6deeadc2f1e642ea67243 (diff)
greedy use of typedef struct was making code harder to read; ok kjell cloder
Diffstat (limited to 'usr.bin/mg/help.c')
-rw-r--r--usr.bin/mg/help.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c
index ca793febe72..7a1c5d5457b 100644
--- a/usr.bin/mg/help.c
+++ b/usr.bin/mg/help.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: help.c,v 1.26 2005/10/14 15:41:33 deraadt Exp $ */
+/* $OpenBSD: help.c,v 1.27 2005/11/18 20:56:53 deraadt Exp $ */
/* This file is in the public domain. */
@@ -16,7 +16,7 @@
#include "macro.h"
#endif /* !NO_MACRO */
-static int showall(BUFFER *, KEYMAP *, char *);
+static int showall(struct buffer *, KEYMAP *, char *);
static int findbind(KEYMAP *, PF, char *, size_t);
/*
@@ -104,7 +104,7 @@ int
wallchart(int f, int n)
{
int m;
- BUFFER *bp;
+ struct buffer *bp;
bp = bfind("*help*", TRUE);
if (bclear(bp) != TRUE)
@@ -125,7 +125,7 @@ wallchart(int f, int n)
}
static int
-showall(BUFFER *bp, KEYMAP *map, char *prefix)
+showall(struct buffer *bp, KEYMAP *map, char *prefix)
{
KEYMAP *newmap;
char buf[80], key[16];
@@ -177,8 +177,8 @@ help_help(int f, int n)
int
apropos_command(int f, int n)
{
- BUFFER *bp;
- LIST *fnames, *el;
+ struct buffer *bp;
+ struct list *fnames, *el;
char string[32];
if (eread("apropos: ", string, sizeof(string), EFNUL | EFNEW) == NULL)