From b3629efe71087e0465b3d28273f1949b8f4a0088 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 2 Jun 2008 04:50:47 +0000 Subject: 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 --- usr.sbin/timed/timed/timed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/timed') 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; -- cgit v1.1