diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:24:53 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:27:08 -0500 |
commit | 6fbfa9f951878ab489147d9e459191d4aacfa819 (patch) | |
tree | b542f52199466aab195f86f1565e3beb62d2c04d | |
parent | c9c938cb050e6d45088c5c39e4097742e875c496 (diff) |
[SCTP]: Annotate ->inaddr_any().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/sctp/structs.h | 2 | ||||
-rw-r--r-- | net/sctp/ipv6.c | 2 | ||||
-rw-r--r-- | net/sctp/protocol.c | 2 | ||||
-rw-r--r-- | net/sctp/socket.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index d44202b0487d..3a6b8745538c 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -560,7 +560,7 @@ struct sctp_af { | |||
560 | struct sctp_sock *, | 560 | struct sctp_sock *, |
561 | const struct sk_buff *); | 561 | const struct sk_buff *); |
562 | sctp_scope_t (*scope) (union sctp_addr *); | 562 | sctp_scope_t (*scope) (union sctp_addr *); |
563 | void (*inaddr_any) (union sctp_addr *, unsigned short); | 563 | void (*inaddr_any) (union sctp_addr *, __be16); |
564 | int (*is_any) (const union sctp_addr *); | 564 | int (*is_any) (const union sctp_addr *); |
565 | int (*available) (union sctp_addr *, | 565 | int (*available) (union sctp_addr *, |
566 | struct sctp_sock *); | 566 | struct sctp_sock *); |
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index 8e2b1e4ec66e..268d32c89594 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
@@ -478,7 +478,7 @@ static int sctp_v6_cmp_addr(const union sctp_addr *addr1, | |||
478 | } | 478 | } |
479 | 479 | ||
480 | /* Initialize addr struct to INADDR_ANY. */ | 480 | /* Initialize addr struct to INADDR_ANY. */ |
481 | static void sctp_v6_inaddr_any(union sctp_addr *addr, unsigned short port) | 481 | static void sctp_v6_inaddr_any(union sctp_addr *addr, __be16 port) |
482 | { | 482 | { |
483 | memset(addr, 0x00, sizeof(union sctp_addr)); | 483 | memset(addr, 0x00, sizeof(union sctp_addr)); |
484 | addr->v6.sin6_family = AF_INET6; | 484 | addr->v6.sin6_family = AF_INET6; |
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index c6297744a4ed..5da887528bf1 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -338,7 +338,7 @@ static int sctp_v4_cmp_addr(const union sctp_addr *addr1, | |||
338 | } | 338 | } |
339 | 339 | ||
340 | /* Initialize addr struct to INADDR_ANY. */ | 340 | /* Initialize addr struct to INADDR_ANY. */ |
341 | static void sctp_v4_inaddr_any(union sctp_addr *addr, unsigned short port) | 341 | static void sctp_v4_inaddr_any(union sctp_addr *addr, __be16 port) |
342 | { | 342 | { |
343 | addr->v4.sin_family = AF_INET; | 343 | addr->v4.sin_family = AF_INET; |
344 | addr->v4.sin_addr.s_addr = INADDR_ANY; | 344 | addr->v4.sin_addr.s_addr = INADDR_ANY; |
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index adbe531fdedc..56f77d35a8e1 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -5055,7 +5055,7 @@ static int sctp_autobind(struct sock *sk) | |||
5055 | { | 5055 | { |
5056 | union sctp_addr autoaddr; | 5056 | union sctp_addr autoaddr; |
5057 | struct sctp_af *af; | 5057 | struct sctp_af *af; |
5058 | unsigned short port; | 5058 | __be16 port; |
5059 | 5059 | ||
5060 | /* Initialize a local sockaddr structure to INADDR_ANY. */ | 5060 | /* Initialize a local sockaddr structure to INADDR_ANY. */ |
5061 | af = sctp_sk(sk)->pf->af; | 5061 | af = sctp_sk(sk)->pf->af; |