aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/watch/watch.c
diff options
context:
space:
mode:
authorPeter Grehan <grehan@FreeBSD.org>2004-01-22 07:23:36 +0000
committerPeter Grehan <grehan@FreeBSD.org>2004-01-22 07:23:36 +0000
commit5cfe0423e65c346d83d1f90d5e3fd6b1cb2e310c (patch)
tree376d48213587a799597a88ac216bca01388a3cb4 /usr.sbin/watch/watch.c
parent53cd4099fb837b9083922b5c3ec44ec26d2bfe3a (diff)
downloadsrc-5cfe0423e65c346d83d1f90d5e3fd6b1cb2e310c.tar.gz
src-5cfe0423e65c346d83d1f90d5e3fd6b1cb2e310c.zip
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
Notes
Notes: svn path=/head/; revision=124830
Diffstat (limited to 'usr.sbin/watch/watch.c')
-rw-r--r--usr.sbin/watch/watch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c
index eef44b037381..bca50967299a 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, "");