]> granicus.if.org Git - strace/commitdiff
net.c: use AF_INET6 unconditionally
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 15 Jun 2016 21:56:58 +0000 (21:56 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Jun 2016 01:00:38 +0000 (01:00 +0000)
* net.c (SYS_FUNC(socket)): Do not check for AF_INET6 availability.

net.c

diff --git a/net.c b/net.c
index cb4e636931b73e12e8660f85f5117a73f72c2003..124ac8dc8d6784ebf2cfd9fef44ffc00c103ab7a 100644 (file)
--- a/net.c
+++ b/net.c
@@ -774,9 +774,7 @@ SYS_FUNC(socket)
        tprints(", ");
        switch (tcp->u_arg[0]) {
        case AF_INET:
-#ifdef AF_INET6
        case AF_INET6:
-#endif
                printxval(inet_protocols, tcp->u_arg[2], "IPPROTO_???");
                break;
 #ifdef AF_IPX