#
-# 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.
include $(TOPDIR)/rules.mk
PKG_NAME:=resolveip
-PKG_RELEASE:=1
+PKG_RELEASE:=2
include $(INCLUDE_DIR)/package.mk
int main(int argc, char **argv)
{
int timeout = 3;
- char opt;
+ int opt;
char ipaddr[INET6_ADDRSTRLEN];
void *addr;
struct addrinfo *res, *rp;
while ((opt = getopt(argc, argv, "46t:h")) > -1)
{
- switch (opt)
+ switch ((char)opt)
{
case '4':
hints.ai_family = AF_INET;