diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-15 22:12:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-15 22:12:20 +0000 |
commit | b8b24216a0b3f2ce1dcd07b6c6894f835e0e8767 (patch) | |
tree | 992cc5405177cea7aa58836db78fae37f6d1b5e2 /usr.bin/tr/tr.c | |
parent | 9b46ba18f9ee96fa26df28c1b79425e1f55d71be (diff) |
signed and unsigned char wiggles
Diffstat (limited to 'usr.bin/tr/tr.c')
-rw-r--r-- | usr.bin/tr/tr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tr/tr.c b/usr.bin/tr/tr.c index bda2adb8252..501c208b14b 100644 --- a/usr.bin/tr/tr.c +++ b/usr.bin/tr/tr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tr.c,v 1.12 2004/05/09 03:20:20 deraadt Exp $ */ +/* $OpenBSD: tr.c,v 1.13 2004/09/15 22:12:19 deraadt Exp $ */ /* $NetBSD: tr.c,v 1.5 1995/08/31 22:13:48 jtc Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)tr.c 8.2 (Berkeley) 5/4/95"; #endif -static char rcsid[] = "$OpenBSD: tr.c,v 1.12 2004/05/09 03:20:20 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tr.c,v 1.13 2004/09/15 22:12:19 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -192,8 +192,8 @@ main(int argc, char *argv[]) if (!isstring2) usage(); - s1.str = argv[0]; - s2.str = argv[1]; + s1.str = (unsigned char *)argv[0]; + s2.str = (unsigned char *)argv[1]; if (cflag) for (cnt = NCHARS, p = string1; cnt--;) @@ -239,7 +239,7 @@ setup(int *string, char *arg, STR *str, int cflag) { int cnt, *p; - str->str = arg; + str->str = (unsigned char *)arg; bzero(string, NCHARS * sizeof(int)); while (next(str)) string[str->lastch] = 1; |