From 8a15d8de98c1573297be49b2ad910036af21343d Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 25 Jun 2003 03:38:34 +0000 Subject: avoid signed issues; tedu ok --- usr.bin/diff/diffreg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/diff/diffreg.c') diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c index feede260423..c3f814e46f0 100644 --- a/usr.bin/diff/diffreg.c +++ b/usr.bin/diff/diffreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diffreg.c,v 1.5 2003/06/25 03:37:32 deraadt Exp $ */ +/* $OpenBSD: diffreg.c,v 1.6 2003/06/25 03:38:34 deraadt Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -143,7 +143,7 @@ int clen = 0; int *J; /* will be overlaid on class */ long *ixold; /* will be overlaid on klist */ long *ixnew; /* will be overlaid on file[1] */ -char *chrtran; /* translation table for case-folding */ +u_char *chrtran; /* translation table for case-folding */ static void fetch(long *, int, int, FILE *, char *, int); static void output(void); @@ -168,7 +168,7 @@ static int readhash(FILE *); * chrtran points to one of 2 translation tables: cup2low if folding upper to * lower case clow2low if not folding case */ -char clow2low[256] = { +u_char clow2low[256] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, @@ -195,7 +195,7 @@ char clow2low[256] = { 0xfd, 0xfe, 0xff }; -char cup2low[256] = { +u_char cup2low[256] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, -- cgit v1.2.3-59-g8ed1b