]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] fix build failure on hpux
authorEvan Hunt <each@isc.org>
Thu, 11 Apr 2013 04:59:14 +0000 (21:59 -0700)
committerEvan Hunt <each@isc.org>
Thu, 11 Apr 2013 04:59:14 +0000 (21:59 -0700)
lib/isc/unix/socket.c

index 2f2774d9a80ed12b8e80a16f699743e7c68fa56b..2eebf0acb5edd05c4586b748fe4377692a5d03a1 100644 (file)
@@ -1491,8 +1491,9 @@ build_msghdr_send(isc__socket_t *sock, isc_socketevent_t *dev,
                        INSIST(sock->dscp == isc_dscp_check_value);
        }
 
-       if ((sock->type == isc_sockettype_udp)
-           && ((dev->attributes & ISC_SOCKEVENTATTR_DSCP) != 0)) {
+       if ((sock->type == isc_sockettype_udp) &&
+           ((dev->attributes & ISC_SOCKEVENTATTR_DSCP) != 0))
+       {
                int dscp = (dev->dscp << 2) & 0xff;
 
 #ifdef IP_TOS
@@ -1557,8 +1558,8 @@ build_msghdr_send(isc__socket_t *sock, isc_socketevent_t *dev,
                                                 strbuf);
                        }
                }
-       }
 #endif
+       }
 #endif /* USE_CMSG && ISC_PLATFORM_HAVEIPV6 */
 #else /* ISC_NET_BSD44MSGHDR */
        msg->msg_accrights = NULL;