Skip to content

Commit

Permalink
[SCTP]: make 2 functions static
Browse files Browse the repository at this point in the history
This patch makes the following needlessly global functions static:
- ipv6.c: sctp_inet6addr_event()
- protocol.c: sctp_inetaddr_event()

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
AdrianBunk authored and David S. Miller committed Dec 22, 2006
1 parent 0f3fffd commit 2412318
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions include/net/sctp/sctp.h
Expand Up @@ -128,8 +128,6 @@ extern int sctp_copy_local_addr_list(struct sctp_bind_addr *,
int flags);
extern struct sctp_pf *sctp_get_pf_specific(sa_family_t family);
extern int sctp_register_pf(struct sctp_pf *, sa_family_t);
int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev,
void *ptr);

/*
* sctp/socket.c
Expand Down
4 changes: 2 additions & 2 deletions net/sctp/ipv6.c
Expand Up @@ -79,8 +79,8 @@
#include <asm/uaccess.h>

/* Event handler for inet6 address addition/deletion events. */
int sctp_inet6addr_event(struct notifier_block *this, unsigned long ev,
void *ptr)
static int sctp_inet6addr_event(struct notifier_block *this, unsigned long ev,
void *ptr)
{
struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr;
struct sctp_sockaddr_entry *addr;
Expand Down
4 changes: 2 additions & 2 deletions net/sctp/protocol.c
Expand Up @@ -601,8 +601,8 @@ static void sctp_v4_seq_dump_addr(struct seq_file *seq, union sctp_addr *addr)
}

/* Event handler for inet address addition/deletion events. */
int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev,
void *ptr)
static int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev,
void *ptr)
{
struct in_ifaddr *ifa = (struct in_ifaddr *)ptr;
struct sctp_sockaddr_entry *addr;
Expand Down

0 comments on commit 2412318

Please sign in to comment.