Try to fix some of the build problems, it still bumms out on:
[obnox/wireshark/wip.git] / tap-hosts.c
index 592a081b374e7733a53a8545c98910f5482c845a..a840932782ef8851a938402934d974f303cec311 100644 (file)
@@ -105,9 +105,9 @@ hosts_draw(void *dummy _U_)
                        continue;
                }
 
-               sa4 = (struct sockaddr_in *) ai->ai_addr;
+               sa4 = (struct sockaddr_in *)(void *)ai->ai_addr;
                if (inet_ntop(AF_INET, &(sa4->sin_addr.s_addr), addr_str, ADDRSTRLEN)) {
-                       tab_count = (HOSTNAME_POS - strlen(addr_str)) / 8;
+                       tab_count = (HOSTNAME_POS - (int)strlen(addr_str)) / 8;
                        printf("%s", addr_str);
                        for (i = 0; i < tab_count; i++)
                                printf("\t");
@@ -121,9 +121,9 @@ hosts_draw(void *dummy _U_)
                        continue;
                }
 
-               sa6 = (struct sockaddr_in6 *) ai->ai_addr;
+               sa6 = (struct sockaddr_in6 *)(void *)ai->ai_addr;
                if (inet_ntop(AF_INET6, sa6->sin6_addr.s6_addr, addr_str, ADDRSTRLEN)) {
-                       tab_count = (HOSTNAME_POS - strlen(addr_str)) / 8;
+                       tab_count = (HOSTNAME_POS - (int)strlen(addr_str)) / 8;
                        printf("%s", addr_str);
                        for (i = 0; i < tab_count; i++)
                                printf("\t");