summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2013-11-02 18:16:56 +0000
committert00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2013-11-02 18:16:56 +0000
commitbb7718cf40846152b19b119af6d4b3bdb85db6b1 (patch)
tree16b486f82cbadc406b723c4fc18ed50e45da8e15
parent27d5428d96bc21c1097c731755876b8ffaef1b23 (diff)
downloadusrsctplib-bb7718cf40846152b19b119af6d4b3bdb85db6b1.tar.gz
More warnings.
git-svn-id: http://sctp-refimpl.googlecode.com/svn/trunk/KERN/usrsctp/usrsctplib@8651 9df1edf5-d72c-5b5f-11c0-5f5209eb73f7
-rwxr-xr-xnetinet/sctputil.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/netinet/sctputil.c b/netinet/sctputil.c
index da6d61c..a07a386 100755
--- a/netinet/sctputil.c
+++ b/netinet/sctputil.c
@@ -7484,8 +7484,13 @@ sctp_bindx_delete_address(struct sctp_inpcb *inp,
int
sctp_local_addr_count(struct sctp_tcb *stcb)
{
- int loopback_scope, ipv4_local_scope, local_scope, site_scope;
- int ipv4_addr_legal, ipv6_addr_legal;
+ int loopback_scope;
+#if defined(INET)
+ int ipv4_local_scope, ipv4_addr_legal;
+#endif
+#if defined (INET6)
+ int local_scope, site_scope, ipv6_addr_legal;
+#endif
#if defined(__Userspace__)
int conn_addr_legal;
#endif
@@ -7496,11 +7501,15 @@ sctp_local_addr_count(struct sctp_tcb *stcb)
/* Turn on all the appropriate scopes */
loopback_scope = stcb->asoc.scope.loopback_scope;
+#if defined(INET)
ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope;
+ ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal;
+#endif
+#if defined(INET6)
local_scope = stcb->asoc.scope.local_scope;
site_scope = stcb->asoc.scope.site_scope;
- ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal;
ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal;
+#endif
#if defined(__Userspace__)
conn_addr_legal = stcb->asoc.scope.conn_addr_legal;
#endif