diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-31 13:52:32 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-31 13:52:32 +0100 |
commit | d2964b6cd1170e2be17b853a38fb7b8afb673f0e (patch) | |
tree | 8757d5b9fed66b44fb0f909352bd112548394302 | |
parent | 1ce5d7c8b7ef8afa787f180ba742a2da151d53db (diff) |
[nat] Make some methods static.
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 2461f9e70..9242b55be 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -160,7 +160,8 @@ static int assign_src_local_reference(struct sccp_source_reference *ref) LOGP(DNAT, LOGL_ERROR, "Finding a free reference failed\n"); return -1; } -int create_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc_nat_parsed *parsed) + +static int create_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc_nat_parsed *parsed) { struct sccp_connections *conn; @@ -180,7 +181,7 @@ int create_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc return 0; } -void remove_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc_nat_parsed *parsed) +static void remove_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc_nat_parsed *parsed) { struct sccp_connections *conn; @@ -202,7 +203,7 @@ void remove_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bs LOGP(DNAT, LOGL_ERROR, "Unknown connection.\n"); } -struct bsc_connection *patch_sccp_src_ref_to_bsc(struct msgb *msg, struct bsc_nat_parsed *parsed) +static struct bsc_connection *patch_sccp_src_ref_to_bsc(struct msgb *msg, struct bsc_nat_parsed *parsed) { struct sccp_connections *conn; llist_for_each_entry(conn, &sccp_connections, list_entry) { @@ -217,7 +218,7 @@ struct bsc_connection *patch_sccp_src_ref_to_bsc(struct msgb *msg, struct bsc_na return NULL; } -struct bsc_connection *patch_sccp_src_ref_to_msc(struct msgb *msg, struct bsc_nat_parsed *parsed) +static struct bsc_connection *patch_sccp_src_ref_to_msc(struct msgb *msg, struct bsc_nat_parsed *parsed) { struct sccp_connections *conn; llist_for_each_entry(conn, &sccp_connections, list_entry) { |