diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-11-08 10:49:16 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-11-08 10:49:16 +0000 |
commit | 6244920c22d051301e6d20947682546a1de54a48 (patch) | |
tree | 701d79ef07528eb571cedd2864c97d9dcc8804fe | |
parent | 9301a79ab2eb79203f4f5a3ff606e68a138e501b (diff) | |
download | upstream-6244920c22d051301e6d20947682546a1de54a48.tar.gz upstream-6244920c22d051301e6d20947682546a1de54a48.tar.bz2 upstream-6244920c22d051301e6d20947682546a1de54a48.zip |
AA: resolveip: backport r34116
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34117 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/resolveip/Makefile | 4 | ||||
-rw-r--r-- | package/resolveip/src/resolveip.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/package/resolveip/Makefile b/package/resolveip/Makefile index 6ab04e162e..85fe506b42 100644 --- a/package/resolveip/Makefile +++ b/package/resolveip/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2011 OpenWrt.org +# Copyright (C) 2011-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=resolveip -PKG_RELEASE:=1 +PKG_RELEASE:=2 include $(INCLUDE_DIR)/package.mk diff --git a/package/resolveip/src/resolveip.c b/package/resolveip/src/resolveip.c index 310f35ffd5..43c5ae7f12 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; |