summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-21 15:27:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-02-21 15:27:30 +0000
commitae56e1b2dcb5b46688524346a1d7321f1834501b (patch)
tree2839e8d2a17705d3ddeab3863da3f959b02f2d95 /usr.bin
parentf9a150bd5925e830c0913f1419603d4724f08a01 (diff)
KNF
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/def.h8
-rw-r--r--usr.bin/mg/kbd.c4
-rw-r--r--usr.bin/mg/main.c5
-rw-r--r--usr.bin/mg/word.c4
4 files changed, 9 insertions, 12 deletions
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h
index 1e7847ea942..177c6d16bb5 100644
--- a/usr.bin/mg/def.h
+++ b/usr.bin/mg/def.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: def.h,v 1.33 2002/02/21 04:21:05 vincent Exp $ */
+/* $OpenBSD: def.h,v 1.34 2002/02/21 15:27:29 deraadt Exp $ */
#include <sys/queue.h>
@@ -257,8 +257,8 @@ typedef struct {
* This structure holds information about recent actions for the Undo command.
*/
struct undo_rec {
- LIST_ENTRY(undo_rec) next;
- BUFFER *buf;
+ LIST_ENTRY(undo_rec) next;
+ BUFFER *buf;
enum {
INSERT = 1,
DELETE,
@@ -268,7 +268,7 @@ struct undo_rec {
REGION region;
int pos;
int size;
- char *content;
+ char *content;
};
LIST_HEAD(undo_list, undo_rec);
diff --git a/usr.bin/mg/kbd.c b/usr.bin/mg/kbd.c
index 2eb350f5364..cf593ae296d 100644
--- a/usr.bin/mg/kbd.c
+++ b/usr.bin/mg/kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kbd.c,v 1.12 2002/02/21 00:02:04 deraadt Exp $ */
+/* $OpenBSD: kbd.c,v 1.13 2002/02/21 15:27:29 deraadt Exp $ */
/*
* Terminal independent keyboard handling.
@@ -384,7 +384,7 @@ selfinsert(f, n)
maclcur->l_used += n;
/* Copy in the new data */
for (count = maclcur->l_used - n;
- count < maclcur->l_used; count++)
+ count < maclcur->l_used; count++)
maclcur->l_text[count] = c;
} else {
macro[macrocount - 1].m_funct = insert;
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c
index 7dea6f41178..9c2f39b218d 100644
--- a/usr.bin/mg/main.c
+++ b/usr.bin/mg/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.17 2002/02/21 00:02:04 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.18 2002/02/21 15:27:29 deraadt Exp $ */
/*
* Mainline.
@@ -30,9 +30,6 @@ main(argc, argv)
{
char *cp;
-#ifdef SYSINIT
- SYSINIT; /* System dependent. */
-#endif /* SYSINIT */
vtinit(); /* Virtual terminal. */
#ifndef NO_DIR
dirinit(); /* Get current directory. */
diff --git a/usr.bin/mg/word.c b/usr.bin/mg/word.c
index 754c521ce07..e1dfe2bb908 100644
--- a/usr.bin/mg/word.c
+++ b/usr.bin/mg/word.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: word.c,v 1.5 2001/05/24 03:05:28 mickey Exp $ */
+/* $OpenBSD: word.c,v 1.6 2002/02/21 15:27:29 deraadt Exp $ */
/*
* Word mode commands.
@@ -271,5 +271,5 @@ inword()
{
/* can't use lgetc in ISWORD due to bug in OSK cpp */
return curwp->w_doto != llength(curwp->w_dotp) &&
- ISWORD(curwp->w_dotp->l_text[curwp->w_doto]);
+ ISWORD(curwp->w_dotp->l_text[curwp->w_doto]);
}