summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2014-11-13 21:36:24 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2014-11-13 21:36:24 +0000
commitc3186373704d10b2462be41b4f354ebce81448e8 (patch)
tree36f82f8a21a28aed34be52766edc3f3c57e2cebc /usr.bin/mg
parent2360f4cf95ff88e7f4e2d704da78b451591c37ec (diff)
Nuke GOOD define and just exit(0) on success. While there remove
unused MALLOCROUND define. No binary change. From Martin Natano (natano AT natano DOT net). OK lum@
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/main.c4
-rw-r--r--usr.bin/mg/sysdef.h5
2 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c
index 9204d63e8a1..09dcd040e57 100644
--- a/usr.bin/mg/main.c
+++ b/usr.bin/mg/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.72 2014/03/22 11:05:37 lum Exp $ */
+/* $OpenBSD: main.c,v 1.73 2014/11/13 21:36:23 florian Exp $ */
/* This file is in the public domain. */
@@ -235,7 +235,7 @@ quit(int f, int n)
|| eyesno("Modified buffers exist; really exit") == TRUE) {
vttidy();
closetags();
- exit(GOOD);
+ exit(0);
}
return (TRUE);
}
diff --git a/usr.bin/mg/sysdef.h b/usr.bin/mg/sysdef.h
index 6b7561442b3..c67c0c24f7c 100644
--- a/usr.bin/mg/sysdef.h
+++ b/usr.bin/mg/sysdef.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysdef.h,v 1.16 2008/09/15 16:11:35 kjell Exp $ */
+/* $OpenBSD: sysdef.h,v 1.17 2014/11/13 21:36:23 florian Exp $ */
/* This file is in the public domain. */
@@ -15,13 +15,10 @@
#include <signal.h>
#define KBLOCK 8192 /* Kill grow. */
-#define GOOD 0 /* Good exit status. */
typedef int RSIZE; /* Type for file/region sizes */
typedef short KCHAR; /* Type for internal keystrokes */
-#define MALLOCROUND(m) (m+=7,m&=~7) /* round up to 8 byte boundary */
-
struct fileinfo {
uid_t fi_uid;
gid_t fi_gid;