summaryrefslogtreecommitdiffstats
path: root/usr.sbin/timed
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-06-02 04:50:47 +0000
committerimp <imp@FreeBSD.org>2008-06-02 04:50:47 +0000
commitb3629efe71087e0465b3d28273f1949b8f4a0088 (patch)
tree3fb1b79e059fbed23c182fb296cb08456ea43bfb /usr.sbin/timed
parent2d5df8d9da5e7ef8697fd6a0fa2f2f9a8148145d (diff)
downloadFreeBSD-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
Diffstat (limited to 'usr.sbin/timed')
-rw-r--r--usr.sbin/timed/timed/timed.c2
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;
OpenPOWER on IntegriCloud