summaryrefslogtreecommitdiffstats
path: root/usr.sbin
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 /usr.sbin
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 'usr.sbin')
-rw-r--r--usr.sbin/edquota/edquota.c4
-rw-r--r--usr.sbin/getfmac/getfmac.c4
-rw-r--r--usr.sbin/getpmac/getpmac.c4
-rw-r--r--usr.sbin/mixer/mixer.c2
-rw-r--r--usr.sbin/quotaon/quotaon.c4
-rw-r--r--usr.sbin/repquota/repquota.c4
-rw-r--r--usr.sbin/sa/main.c3
-rw-r--r--usr.sbin/watch/watch.c4
8 files changed, 14 insertions, 15 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index fb1be0e..a030877 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -107,8 +107,8 @@ main(int argc, char **argv)
int i, quotatype, range, tmpfd;
uid_t startuid, enduid;
u_int32_t *limp;
- char *protoname, *cp, *oldoptarg, ch;
- int eflag = 0, tflag = 0, pflag = 0;
+ char *protoname, *cp, *oldoptarg;
+ int eflag = 0, tflag = 0, pflag = 0, ch;
char *fspath = NULL;
char buf[30];
diff --git a/usr.sbin/getfmac/getfmac.c b/usr.sbin/getfmac/getfmac.c
index 9c3dc6d..351f43e 100644
--- a/usr.sbin/getfmac/getfmac.c
+++ b/usr.sbin/getfmac/getfmac.c
@@ -58,9 +58,9 @@ usage(void)
int
main(int argc, char *argv[])
{
- char ch, *labellist, *string;
+ char *labellist, *string;
mac_t label;
- int hflag;
+ int ch, hflag;
int error, i;
labellist = NULL;
diff --git a/usr.sbin/getpmac/getpmac.c b/usr.sbin/getpmac/getpmac.c
index 6139860..ee289e8 100644
--- a/usr.sbin/getpmac/getpmac.c
+++ b/usr.sbin/getpmac/getpmac.c
@@ -57,10 +57,10 @@ usage(void)
int
main(int argc, char *argv[])
{
- char ch, *labellist, *string;
+ char *labellist, *string;
mac_t label;
pid_t pid;
- int error, pid_set;
+ int ch, error, pid_set;
pid_set = 0;
pid = 0;
diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c
index f06abb3..7abac46 100644
--- a/usr.sbin/mixer/mixer.c
+++ b/usr.sbin/mixer/mixer.c
@@ -93,7 +93,7 @@ main(int argc, char *argv[])
int l = 0, r = 0, t = 0;
char lstr[5], rstr[5];
int n = 0, lrel = 0, rrel = 0;
- char ch;
+ int ch;
char *name;
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c
index 3d54a27..3ade757 100644
--- a/usr.sbin/quotaon/quotaon.c
+++ b/usr.sbin/quotaon/quotaon.c
@@ -80,9 +80,9 @@ int
main(int argc, char **argv)
{
register struct fstab *fs;
- char ch, *qfnp, *whoami;
+ char *qfnp, *whoami;
long argnum, done = 0;
- int i, offmode = 0, errs = 0;
+ int ch, i, offmode = 0, errs = 0;
whoami = rindex(*argv, '/') + 1;
if (whoami == (char *)1)
diff --git a/usr.sbin/repquota/repquota.c b/usr.sbin/repquota/repquota.c
index 5930a8a..7c0e22d 100644
--- a/usr.sbin/repquota/repquota.c
+++ b/usr.sbin/repquota/repquota.c
@@ -110,9 +110,9 @@ main(int argc, char **argv)
register struct fstab *fs;
register struct passwd *pw;
register struct group *gr;
- int gflag = 0, uflag = 0, errs = 0;
+ int ch, gflag = 0, uflag = 0, errs = 0;
long i, argnum, done = 0;
- char ch, *qfnp;
+ char *qfnp;
while ((ch = getopt(argc, argv, "agnuv")) != -1) {
switch(ch) {
diff --git a/usr.sbin/sa/main.c b/usr.sbin/sa/main.c
index 2fde380..fe7de23 100644
--- a/usr.sbin/sa/main.c
+++ b/usr.sbin/sa/main.c
@@ -81,9 +81,8 @@ cmpf_t sa_cmp = cmp_usrsys;
int
main(int argc, char **argv)
{
- char ch;
char pathacct[] = _PATH_ACCT;
- int error = 0;
+ int ch, error = 0;
dfltargv[0] = pathacct;
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c
index eef44b0..bca5096 100644
--- a/usr.sbin/watch/watch.c
+++ b/usr.sbin/watch/watch.c
@@ -283,9 +283,9 @@ ask_dev(char *dbuf, const char *msg)
int
main(int ac, char *av[])
{
- int res, rv, nread;
+ int ch, res, rv, nread;
size_t b_size = MIN_SIZE;
- char ch, *buf, chb[READB_LEN];
+ char *buf, chb[READB_LEN];
fd_set fd_s;
(void) setlocale(LC_TIME, "");
OpenPOWER on IntegriCloud