aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-09-18 22:48:34 +0200
committerHarald Welte <laforge@osmocom.org>2020-09-18 23:14:36 +0200
commitb40cfdc54ba6a64a87b48aba8d3b6e39dac4e329 (patch)
tree5e5cf32f43f3f723db55235581f1c82a65ef5d5f
parent92ad029e1a95304f46d6fac59f19f92c944094c7 (diff)
gprs_ns2: Mark gprs_ns2_validate_* as static
They are all called indirectly via gprs_ns2_validate(), so mark them as static. Change-Id: I8425ed3da32019b86cf12d3c27132f07d931cf27
-rw-r--r--src/gb/gprs_ns2_message.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gb/gprs_ns2_message.c b/src/gb/gprs_ns2_message.c
index b4063f5e..fac6108c 100644
--- a/src/gb/gprs_ns2_message.c
+++ b/src/gb/gprs_ns2_message.c
@@ -64,7 +64,7 @@ enum ns_ctr {
-int gprs_ns2_validate_reset(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed *tp, uint8_t *cause)
+static int gprs_ns2_validate_reset(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed *tp, uint8_t *cause)
{
if (!TLVP_PRESENT(tp, NS_IE_CAUSE) || !TLVP_PRESENT(tp, NS_IE_VCI) || !TLVP_PRESENT(tp, NS_IE_NSEI)) {
*cause = NS_CAUSE_MISSING_ESSENT_IE;
@@ -74,7 +74,7 @@ int gprs_ns2_validate_reset(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct t
return 0;
}
-int gprs_ns2_validate_reset_ack(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed *tp, uint8_t *cause)
+static int gprs_ns2_validate_reset_ack(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed *tp, uint8_t *cause)
{
if (!TLVP_PRESENT(tp, NS_IE_VCI) || !TLVP_PRESENT(tp, NS_IE_NSEI)) {
*cause = NS_CAUSE_MISSING_ESSENT_IE;
@@ -84,7 +84,7 @@ int gprs_ns2_validate_reset_ack(struct gprs_ns2_vc *nsvc, struct msgb *msg, stru
return 0;
}
-int gprs_ns2_validate_block(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed *tp, uint8_t *cause)
+static int gprs_ns2_validate_block(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed *tp, uint8_t *cause)
{
if (!TLVP_PRESENT(tp, NS_IE_VCI) || !TLVP_PRESENT(tp, NS_IE_CAUSE)) {
*cause = NS_CAUSE_MISSING_ESSENT_IE;
@@ -94,7 +94,7 @@ int gprs_ns2_validate_block(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct t
return 0;
}
-int gprs_ns2_validate_block_ack(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed *tp, uint8_t *cause)
+static int gprs_ns2_validate_block_ack(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed *tp, uint8_t *cause)
{
if (!TLVP_PRESENT(tp, NS_IE_VCI)) {
*cause = NS_CAUSE_MISSING_ESSENT_IE;
@@ -104,7 +104,7 @@ int gprs_ns2_validate_block_ack(struct gprs_ns2_vc *nsvc, struct msgb *msg, stru
return 0;
}
-int gprs_ns2_validate_status(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed *tp, uint8_t *cause)
+static int gprs_ns2_validate_status(struct gprs_ns2_vc *nsvc, struct msgb *msg, struct tlv_parsed *tp, uint8_t *cause)
{
if (!TLVP_PRESENT(tp, NS_IE_CAUSE)) {