summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2010-01-06 00:20:37 +0000
committerdelphij <delphij@FreeBSD.org>2010-01-06 00:20:37 +0000
commitac4932bfb598d4cd46df580f5cb1bef84420375a (patch)
tree0132e6278b7d68b83d233d7d35bb1a44c4f80c67 /games
parenta3ff55adf70c5d789ceb6926191f778093405a8c (diff)
downloadFreeBSD-src-ac4932bfb598d4cd46df580f5cb1bef84420375a.zip
FreeBSD-src-ac4932bfb598d4cd46df580f5cb1bef84420375a.tar.gz
Fix build: getopt() returns int so use an integer to get the value.
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 fd82f68..e9b2a5c 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) {
OpenPOWER on IntegriCloud