Skip to content

Commit

Permalink
[SCTP] net/sctp/socket.c: make 3 variables static
Browse files Browse the repository at this point in the history
This patch makes the following needlessly global variables static:
- sctp_memory_pressure
- sctp_memory_allocated
- sctp_sockets_allocated

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Oct 10, 2007
1 parent 5c94bf8 commit b6fa1a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/sctp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ extern int sysctl_sctp_mem[3];
extern int sysctl_sctp_rmem[3];
extern int sysctl_sctp_wmem[3];

int sctp_memory_pressure;
atomic_t sctp_memory_allocated;
atomic_t sctp_sockets_allocated;
static int sctp_memory_pressure;
static atomic_t sctp_memory_allocated;
static atomic_t sctp_sockets_allocated;

static void sctp_enter_memory_pressure(void)
{
Expand Down

0 comments on commit b6fa1a4

Please sign in to comment.