From 047b4ae4cf6c321d7dc1c7b962ca57615f252177 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 2 Jun 2008 04:50:47 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/timed/timed/timed.c b/usr.sbin/timed/timed/timed.c index 27344a3b9e05..92a173340fb1 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;