Commit 6fbfa9f951878ab489147d9e459191d4aacfa819
Committed by
David S. Miller
1 parent
c9c938cb05
Exists in
master
and in
7 other branches
[SCTP]: Annotate ->inaddr_any().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 4 changed files with 4 additions and 4 deletions Side-by-side Diff
include/net/sctp/structs.h
... | ... | @@ -560,7 +560,7 @@ |
560 | 560 | struct sctp_sock *, |
561 | 561 | const struct sk_buff *); |
562 | 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 | 564 | int (*is_any) (const union sctp_addr *); |
565 | 565 | int (*available) (union sctp_addr *, |
566 | 566 | struct sctp_sock *); |
net/sctp/ipv6.c
... | ... | @@ -478,7 +478,7 @@ |
478 | 478 | } |
479 | 479 | |
480 | 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 | 483 | memset(addr, 0x00, sizeof(union sctp_addr)); |
484 | 484 | addr->v6.sin6_family = AF_INET6; |
net/sctp/protocol.c
... | ... | @@ -338,7 +338,7 @@ |
338 | 338 | } |
339 | 339 | |
340 | 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 | 343 | addr->v4.sin_family = AF_INET; |
344 | 344 | addr->v4.sin_addr.s_addr = INADDR_ANY; |
net/sctp/socket.c