From 2dafdd4f00f15fa15ca85cd71c1f3c02f97f0e86 Mon Sep 17 00:00:00 2001 From: grehan Date: Thu, 22 Jan 2004 07:23:36 +0000 Subject: Userland signed char fixes for PPC build. Problems were using a char return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from Submitted by: Stefan Farfeleder Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe --- usr.bin/locale/locale.c | 2 +- usr.bin/uuencode/uuencode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/locale/locale.c b/usr.bin/locale/locale.c index b88cce9..9a1e437 100644 --- a/usr.bin/locale/locale.c +++ b/usr.bin/locale/locale.c @@ -211,7 +211,7 @@ struct _kwinfo { int main(int argc, char *argv[]) { - char ch; + int ch; int tmp; while ((ch = getopt(argc, argv, "ackm")) != -1) { diff --git a/usr.bin/uuencode/uuencode.c b/usr.bin/uuencode/uuencode.c index 9a05248..e4d83b4 100644 --- a/usr.bin/uuencode/uuencode.c +++ b/usr.bin/uuencode/uuencode.c @@ -77,7 +77,7 @@ main(int argc, char *argv[]) { struct stat sb; int base64; - char ch; + int ch; char *outfile; base64 = 0; -- cgit v1.1