diff options
author | 2014-11-13 21:36:23 +0000 | |
---|---|---|
committer | 2014-11-13 21:36:23 +0000 | |
commit | 890f439f8e305c206831c2689170489551b627dd (patch) | |
tree | 7f15b3c4db051db23aa03a109d3c4485adfec0fe | |
parent | Add many missing error checks (probably not exhaustive, but a good start): (diff) | |
download | wireguard-openbsd-890f439f8e305c206831c2689170489551b627dd.tar.xz wireguard-openbsd-890f439f8e305c206831c2689170489551b627dd.zip |
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@
-rw-r--r-- | usr.bin/mg/main.c | 4 | ||||
-rw-r--r-- | usr.bin/mg/sysdef.h | 5 |
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; |