aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2010-01-06 00:20:37 +0000
committerXin LI <delphij@FreeBSD.org>2010-01-06 00:20:37 +0000
commit64c50c64039e7ecbdaefb1df9d5754e61a36538a (patch)
tree0132e6278b7d68b83d233d7d35bb1a44c4f80c67 /games
parente851fd040e2965f6cd6614b739f94f793029dfdb (diff)
downloadsrc-64c50c64039e7ecbdaefb1df9d5754e61a36538a.tar.gz
src-64c50c64039e7ecbdaefb1df9d5754e61a36538a.zip
Fix build: getopt() returns int so use an integer to get the value.
Notes
Notes: svn path=/head/; revision=201627
Diffstat (limited to 'games')
-rw-r--r--games/pom/pom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/pom/pom.c b/games/pom/pom.c
index fd82f681a636..e9b2a5c286b1 100644
--- a/games/pom/pom.c
+++ b/games/pom/pom.c
@@ -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) {