summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/util.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2003-08-01 20:30:48 +0000
committerotto <otto@openbsd.org>2003-08-01 20:30:48 +0000
commit0e9f50d86f894e59cce993e6fc7b98782bcbc7cc (patch)
tree4c141353cbd680f8561e7adfd62eb44779b01a0e /usr.bin/patch/util.c
parentNuke uvm_useracc() call here too. (diff)
downloadwireguard-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/util.c')
-rw-r--r--usr.bin/patch/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/patch/util.c b/usr.bin/patch/util.c
index 8b6014f47f3..e295178cc06 100644
--- a/usr.bin/patch/util.c
+++ b/usr.bin/patch/util.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: util.c,v 1.24 2003/07/31 20:51:43 otto Exp $ */
+/* $OpenBSD: util.c,v 1.25 2003/08/01 20:30:49 otto Exp $ */
#ifndef lint
-static const char rcsid[] = "$OpenBSD: util.c,v 1.24 2003/07/31 20:51:43 otto Exp $";
+static const char rcsid[] = "$OpenBSD: util.c,v 1.25 2003/08/01 20:30:49 otto Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -162,7 +162,7 @@ savestr(const char *s)
rv = strdup(s);
if (rv == NULL) {
if (using_plan_a)
- out_of_mem = TRUE;
+ out_of_mem = true;
else
fatal("out of memory\n");
}
@@ -275,7 +275,7 @@ ignore_signals(void)
/*
* Make sure we'll have the directories to create a file. If `striplast' is
- * TRUE, ignore the last element of `filename'.
+ * true, ignore the last element of `filename'.
*/
void