summaryrefslogtreecommitdiff
path: root/usr.bin/mg/main.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/main.c
parent8130188ef7f4e6c63aa6deeadc2f1e642ea67243 (diff)
greedy use of typedef struct was making code harder to read; ok kjell cloder
Diffstat (limited to 'usr.bin/mg/main.c')
-rw-r--r--usr.bin/mg/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c
index e0db0087e50..2cf9bbd40fe 100644
--- a/usr.bin/mg/main.c
+++ b/usr.bin/mg/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.44 2005/10/13 20:43:17 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.45 2005/11/18 20:56:53 deraadt Exp $ */
/* This file is in the public domain. */
@@ -20,10 +20,10 @@ int thisflag; /* flags, this command */
int lastflag; /* flags, last command */
int curgoal; /* goal column */
int startrow; /* row to start */
-BUFFER *curbp; /* current buffer */
-BUFFER *bheadp; /* BUFFER list head */
-MGWIN *curwp; /* current window */
-MGWIN *wheadp; /* MGWIN listhead */
+struct buffer *curbp; /* current buffer */
+struct buffer *bheadp; /* BUFFER list head */
+struct mgwin *curwp; /* current window */
+struct mgwin *wheadp; /* MGWIN listhead */
char pat[NPAT]; /* pattern */
static void edinit(PF);
@@ -173,8 +173,8 @@ notnum:
static void
edinit(PF init_fcn)
{
- BUFFER *bp;
- MGWIN *wp;
+ struct buffer *bp;
+ struct mgwin *wp;
bheadp = NULL;
bp = bfind("*scratch*", TRUE); /* Text buffer. */