From 8930cca53e6efc5239cfba1637e84b806973f877 Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Tue, 22 Nov 2011 11:03:51 +0100 Subject: [PATCH] parse_args: getopt() return value is int. --- ykpamcfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykpamcfg.c b/ykpamcfg.c index ab0b1f0..757a4eb 100644 --- a/ykpamcfg.c +++ b/ykpamcfg.c @@ -88,7 +88,7 @@ parse_args(int argc, char **argv, unsigned char **action, int *exit_code) { - char c; + int c; while((c = getopt(argc, argv, optstring)) != -1) { switch (c) {