summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2004-11-27 19:16:25 +0000
committerotto <otto@openbsd.org>2004-11-27 19:16:25 +0000
commit063293f00c716b89f318280499d0603f6c477232 (patch)
tree6ef532b928b15dca54c9f2cfd9a9ba86bf16bcf9 /usr.bin/diff/diffreg.c
parentFix for building in another directory using config -s. ok deraadt@, miod@. (diff)
downloadwireguard-openbsd-063293f00c716b89f318280499d0603f6c477232.tar.xz
wireguard-openbsd-063293f00c716b89f318280499d0603f6c477232.zip
Use unsigned char for bytes that are fed to isxxx() functions, to improve
portability. Spotted by YAMAMOTO Takashi. ok millert@
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r--usr.bin/diff/diffreg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index b59a8385c08..4b406f6ce86 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diffreg.c,v 1.59 2004/10/20 08:52:19 otto Exp $ */
+/* $OpenBSD: diffreg.c,v 1.60 2004/11/27 19:16:25 otto Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -65,7 +65,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: diffreg.c,v 1.59 2004/10/20 08:52:19 otto Exp $";
+static const char rcsid[] = "$OpenBSD: diffreg.c,v 1.60 2004/11/27 19:16:25 otto Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -1276,7 +1276,7 @@ readhash(FILE *f)
static int
asciifile(FILE *f)
{
- char buf[BUFSIZ];
+ unsigned char buf[BUFSIZ];
int i, cnt;
if (aflag || f == NULL)
@@ -1303,7 +1303,7 @@ static __inline int max(int a, int b)
static char *
match_function(const long *f, int pos, FILE *file)
{
- char buf[FUNCTION_CONTEXT_SIZE];
+ unsigned char buf[FUNCTION_CONTEXT_SIZE];
size_t nc;
int last = lastline;
char *p;