X-Git-Url: https://git.saurik.com/apple/network_cmds.git/blobdiff_plain/fdfd5971fdda9c24d576337643161018a5281167..fa34b6f5f32f696bb2fe92a877dfaec960fcd850:/mtest.tproj/mtest.c diff --git a/mtest.tproj/mtest.c b/mtest.tproj/mtest.c index 0401832..e5a7442 100644 --- a/mtest.tproj/mtest.c +++ b/mtest.tproj/mtest.c @@ -347,19 +347,6 @@ af2sock(const int af, int s, int s6) return (-1); } -static __inline int -af2socklen(const int af) -{ - - if (af == AF_INET) - return (sizeof(struct sockaddr_in)); -#ifdef INET6 - if (af == AF_INET6) - return (sizeof(struct sockaddr_in6)); -#endif - return (-1); -} - static void process_cmd(char *cmd, int s, int s6 __unused, FILE *fp __unused) { @@ -374,7 +361,7 @@ process_cmd(char *cmd, int s, int s6 __unused, FILE *fp __unused) void *optval; uint32_t fmode, ifindex; socklen_t optlen; - int af, error, i, level, n, optname; + int af, error, i, level, n = 0, optname; #ifndef __APPLE__ int f, flags; #endif /* __APPLE__ */