diff options
author | 2003-08-01 20:30:48 +0000 | |
---|---|---|
committer | 2003-08-01 20:30:48 +0000 | |
commit | 0e9f50d86f894e59cce993e6fc7b98782bcbc7cc (patch) | |
tree | 4c141353cbd680f8561e7adfd62eb44779b01a0e /usr.bin/patch/common.h | |
parent | Nuke uvm_useracc() call here too. (diff) | |
download | wireguard-openbsd-0e9f50d86f894e59cce993e6fc7b98782bcbc7cc.tar.xz wireguard-openbsd-0e9f50d86f894e59cce993e6fc7b98782bcbc7cc.zip |
- use stdbool.h instead of roll-your-own booleans
- fix some -Wall warnings
- fix asserts: in some cases remove them, in other cases they have
become Internal errors or detection of malformed patch files.
- fix some free() related code
ok millert@ tedu@
Diffstat (limited to 'usr.bin/patch/common.h')
-rw-r--r-- | usr.bin/patch/common.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/patch/common.h b/usr.bin/patch/common.h index 0de1fc67a08..9e49c26ad18 100644 --- a/usr.bin/patch/common.h +++ b/usr.bin/patch/common.h @@ -1,12 +1,11 @@ -/* $OpenBSD: common.h,v 1.21 2003/07/31 14:10:21 otto Exp $ */ +/* $OpenBSD: common.h,v 1.22 2003/08/01 20:30:48 otto Exp $ */ + +#include <stdbool.h> #define DEBUGGING /* constants */ -#define TRUE 1 -#define FALSE 0 - #define MAXHUNKSIZE 100000 /* is this enough lines? */ #define INITHUNKMAX 125 /* initial dynamic allocation size */ #define MAXLINELEN 8192 @@ -32,7 +31,6 @@ /* typedefs */ -typedef char bool; typedef long LINENUM; /* must be signed */ /* globals */ |