From ac4932bfb598d4cd46df580f5cb1bef84420375a Mon Sep 17 00:00:00 2001 From: delphij Date: Wed, 6 Jan 2010 00:20:37 +0000 Subject: Fix build: getopt() returns int so use an integer to get the value. --- games/pom/pom.c | 4 ++-- 1 file 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) { -- cgit v1.1