summaryrefslogtreecommitdiffstats
path: root/sbin/devfs
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2004-01-22 07:23:36 +0000
committergrehan <grehan@FreeBSD.org>2004-01-22 07:23:36 +0000
commit2dafdd4f00f15fa15ca85cd71c1f3c02f97f0e86 (patch)
tree376d48213587a799597a88ac216bca01388a3cb4 /sbin/devfs
parentf96af44358658859315aa3054e6738579d20d071 (diff)
downloadFreeBSD-src-2dafdd4f00f15fa15ca85cd71c1f3c02f97f0e86.zip
FreeBSD-src-2dafdd4f00f15fa15ca85cd71c1f3c02f97f0e86.tar.gz
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 <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe
Diffstat (limited to 'sbin/devfs')
-rw-r--r--sbin/devfs/devfs.c2
-rw-r--r--sbin/devfs/rule.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/devfs/devfs.c b/sbin/devfs/devfs.c
index 92d1c0f..f531f75 100644
--- a/sbin/devfs/devfs.c
+++ b/sbin/devfs/devfs.c
@@ -59,7 +59,7 @@ main(int ac, char **av)
{
const char *mountpt;
struct cmd *c;
- char ch;
+ int ch;
mountpt = NULL;
while ((ch = getopt(ac, av, "m:")) != -1)
diff --git a/sbin/devfs/rule.c b/sbin/devfs/rule.c
index f1fd908..b179c9e 100644
--- a/sbin/devfs/rule.c
+++ b/sbin/devfs/rule.c
@@ -82,7 +82,7 @@ int
rule_main(int ac, char **av)
{
struct cmd *c;
- char ch;
+ int ch;
setprogname("devfs rule");
optreset = optind = 1;
OpenPOWER on IntegriCloud