diff options
author | imp <imp@FreeBSD.org> | 2008-06-02 04:50:47 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-06-02 04:50:47 +0000 |
commit | b3629efe71087e0465b3d28273f1949b8f4a0088 (patch) | |
tree | 3fb1b79e059fbed23c182fb296cb08456ea43bfb | |
parent | 2d5df8d9da5e7ef8697fd6a0fa2f2f9a8148145d (diff) | |
download | FreeBSD-src-b3629efe71087e0465b3d28273f1949b8f4a0088.zip FreeBSD-src-b3629efe71087e0465b3d28273f1949b8f4a0088.tar.gz |
getopt returns an int, not a char. Make sure that we store the
variable in an int to avoid casting to an unsigned value which causes
the comparison with -1 to fail.
PR: 123807
Submitted by: Matthew Luckie
Reviewed by: keramida@
MFC after: 1 week
-rw-r--r-- | usr.sbin/timed/timed/timed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/timed/timed/timed.c b/usr.sbin/timed/timed/timed.c index 27344a3..92a1733 100644 --- a/usr.sbin/timed/timed/timed.c +++ b/usr.sbin/timed/timed/timed.c @@ -134,7 +134,7 @@ main(argc, argv) struct nets *nt; struct sockaddr_in server; u_short port; - char c; + int c; #ifdef lint ntip = NULL; |