summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/backupfile.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/backupfile.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/backupfile.c')
-rw-r--r--usr.bin/patch/backupfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/backupfile.c b/usr.bin/patch/backupfile.c
index a332ada3a65..5863e9b1b14 100644
--- a/usr.bin/patch/backupfile.c
+++ b/usr.bin/patch/backupfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: backupfile.c,v 1.16 2003/07/28 18:35:36 otto Exp $ */
+/* $OpenBSD: backupfile.c,v 1.17 2003/08/01 20:30:48 otto Exp $ */
/*
* backupfile.c -- make Emacs style backup file names Copyright (C) 1990 Free
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: backupfile.c,v 1.16 2003/07/28 18:35:36 otto Exp $";
+static const char rcsid[] = "$OpenBSD: backupfile.c,v 1.17 2003/08/01 20:30:48 otto Exp $";
#endif /* not lint */
#include <ctype.h>
@@ -168,7 +168,7 @@ static int
argmatch(const char *arg, const char **optlist)
{
int i; /* Temporary index in OPTLIST. */
- int arglen; /* Length of ARG. */
+ size_t arglen; /* Length of ARG. */
int matchind = -1; /* Index of first nonexact match. */
int ambiguous = 0; /* If nonzero, multiple nonexact match(es). */