summaryrefslogtreecommitdiff
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-11-27 19:16:26 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-11-27 19:16:26 +0000
commitabf7e5001bf7783de411f1fc077d796b3667564a (patch)
tree56d0f4cf929aaf4ebd80bb4a427926b2115c49ff /usr.bin/diff/diffreg.c
parente26facf9f9ca39e532013b2dc8549e706c7bb4ea (diff)
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;