--- getifname.c.org 2010-05-11 10:27:23.000000000 +0200 +++ getifname.c 2010-05-11 10:28:14.000000000 +0200 @@ -59,7 +59,7 @@ known_output_if = 1; if (opt_debug) printf("DEBUG: Output interface address: %s\n", - inet_ntoa(sa.sin_addr)); + inet_ntoa(output_if_addr.sin_addr)); } else { fprintf(stderr, "Warning: Unable to guess the output " "interface\n"); @@ -315,7 +315,8 @@ * to the OS routing table. Derived from R.Stevens */ int get_output_if(struct sockaddr_in *dest, struct sockaddr_in *ifip) { - int sock_rt, len, on=1; + int sock_rt, on=1; + unsigned int len; struct sockaddr_in iface_out; memset(&iface_out, 0, sizeof(iface_out));