AA: resolveip: backport r34116
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 8 Nov 2012 10:49:16 +0000 (10:49 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 8 Nov 2012 10:49:16 +0000 (10:49 +0000)
SVN-Revision: 34117

package/resolveip/Makefile
package/resolveip/src/resolveip.c

index 6ab04e162efc00fa652f4a713f53353c4450f0cc..85fe506b42e9a7d7530dc376134ced7c86e4f0e1 100644 (file)
@@ -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
 
index 310f35ffd5e55741d4f35f3a41c6b89ca8f51890..43c5ae7f1296570ddcd64082bc507012e43dfb05 100644 (file)
@@ -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;