diff options
author | Mark Lumsden <lum@cvs.openbsd.org> | 2014-03-22 11:05:38 +0000 |
---|---|---|
committer | Mark Lumsden <lum@cvs.openbsd.org> | 2014-03-22 11:05:38 +0000 |
commit | ea0b5c35548a4fa2825bd8c9b9673739737a33d3 (patch) | |
tree | efb53fcc00f3a401ce3e7fc9903ad12d1741a278 /usr.bin/mg | |
parent | 7fbf4fc2d5e11339ab9ae86bbf04155e2d20f8db (diff) |
donebell is no longer required.
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/bell.c | 4 | ||||
-rw-r--r-- | usr.bin/mg/def.h | 3 | ||||
-rw-r--r-- | usr.bin/mg/main.c | 6 |
3 files changed, 3 insertions, 10 deletions
diff --git a/usr.bin/mg/bell.c b/usr.bin/mg/bell.c index aa24bf65ea0..7e20466de82 100644 --- a/usr.bin/mg/bell.c +++ b/usr.bin/mg/bell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bell.c,v 1.1 2013/05/31 18:03:43 lum Exp $ */ +/* $OpenBSD: bell.c,v 1.2 2014/03/22 11:05:37 lum Exp $ */ /* * This file is in the public domain. @@ -18,7 +18,6 @@ bellinit(void) { doaudiblebell = 1; dovisiblebell = 0; - donebell = 0; } void @@ -32,7 +31,6 @@ dobeep(void) update(CNONE); usleep(50000); } - donebell = 1; } /* ARGSUSED */ diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h index 87635275339..ccd79e0b604 100644 --- a/usr.bin/mg/def.h +++ b/usr.bin/mg/def.h @@ -1,4 +1,4 @@ -/* $OpenBSD: def.h,v 1.139 2013/12/23 14:58:16 lum Exp $ */ +/* $OpenBSD: def.h,v 1.140 2014/03/22 11:05:37 lum Exp $ */ /* This file is in the public domain. */ @@ -712,7 +712,6 @@ extern int defb_nmodes; extern int defb_flag; extern int doaudiblebell; extern int dovisiblebell; -extern int donebell; extern char cinfo[]; extern char *keystrings[]; extern char pat[NPAT]; diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c index cb105323b55..9204d63e8a1 100644 --- a/usr.bin/mg/main.c +++ b/usr.bin/mg/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.71 2013/05/31 18:03:44 lum Exp $ */ +/* $OpenBSD: main.c,v 1.72 2014/03/22 11:05:37 lum Exp $ */ /* This file is in the public domain. */ @@ -20,7 +20,6 @@ int curgoal; /* goal column */ int startrow; /* row to start */ int doaudiblebell; /* audible bell toggle */ int dovisiblebell; /* visible bell toggle */ -int donebell; /* done't wring bell */ struct buffer *curbp; /* current buffer */ struct buffer *bheadp; /* BUFFER list head */ struct mgwin *curwp; /* current window */ @@ -187,11 +186,8 @@ notnum: /* FALLTHRU */ case FALSE: default: - if (!donebell) - dobeep(); macrodef = FALSE; } - donebell = 0; } } |