diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-11-08 10:49:16 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-11-08 10:49:16 +0000 |
commit | 3161e0a27d32e5a3583f086c80fc49bb5efef1aa (patch) | |
tree | 701d79ef07528eb571cedd2864c97d9dcc8804fe /package/resolveip/src | |
parent | a5e54ed6779ceb8635fa0f23caa6516b425591df (diff) | |
download | openwrt-3161e0a27d32e5a3583f086c80fc49bb5efef1aa.tar.gz openwrt-3161e0a27d32e5a3583f086c80fc49bb5efef1aa.zip |
AA: resolveip: backport r34116
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34117 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/resolveip/src')
-rw-r--r-- | package/resolveip/src/resolveip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/resolveip/src/resolveip.c b/package/resolveip/src/resolveip.c index 310f35ffd..43c5ae7f1 100644 --- a/package/resolveip/src/resolveip.c +++ b/package/resolveip/src/resolveip.c @@ -35,7 +35,7 @@ static void show_usage(void) int main(int argc, char **argv) { int timeout = 3; - char opt; + int opt; char ipaddr[INET6_ADDRSTRLEN]; void *addr; struct addrinfo *res, *rp; @@ -49,7 +49,7 @@ int main(int argc, char **argv) while ((opt = getopt(argc, argv, "46t:h")) > -1) { - switch (opt) + switch ((char)opt) { case '4': hints.ai_family = AF_INET; |