Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 2010 00:20:37 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r201627 - head/games/pom
Message-ID:  <201001060020.o060Kbbw057778@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Wed Jan  6 00:20:37 2010
New Revision: 201627
URL: http://svn.freebsd.org/changeset/base/201627

Log:
  Fix build: getopt() returns int so use an integer to get the value.

Modified:
  head/games/pom/pom.c

Modified: head/games/pom/pom.c
==============================================================================
--- head/games/pom/pom.c	Tue Jan  5 23:35:43 2010	(r201626)
+++ head/games/pom/pom.c	Wed Jan  6 00:20:37 2010	(r201627)
@@ -88,8 +88,8 @@ main(int argc, char **argv)
 	time_t tt;
 	struct tm GMT, tmd;
 	double days, today, tomorrow;
-	int cnt;
-	char *odate = NULL, *otime = NULL, ch;
+	int ch, cnt;
+	char *odate = NULL, *otime = NULL;
 
 	while ((ch = getopt(argc, argv, "d:t:")) != -1)
 		switch (ch) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001060020.o060Kbbw057778>