svn commit: r201627 - head/games/pom
Xin LI
delphij at FreeBSD.org
Wed Jan 6 00:20:37 UTC 2010
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) {
More information about the svn-src-all
mailing list