path: root/openbsc/src/nat/bsc_nat.c
diff options
authorHolger Hans Peter Freyther <>2010-09-16 06:33:27 +0800
committerHolger Hans Peter Freyther <>2010-09-16 06:33:27 +0800
commit4fcce9ea1919505d4fe1553a56506b5580b99091 (patch)
treebcf8cc656c671d558389063fcb506e5e622ad636 /openbsc/src/nat/bsc_nat.c
parent0d711632f22b2720df09cf5b61e535abd92e4943 (diff)
nat; Start to use gcc attribute to say that parameter may not be zero
This is an attempt to hint the compiler that it should check the parameters and warn when something is null. Sadly it does not work as expected.
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 738b7ef39..dde9196f3 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -102,6 +102,7 @@ int nm_state_event(enum nm_evt evt, uint8_t obj_class, void *obj,
void input_event(int event, enum e1inp_sign_type type, struct gsm_bts_trx *trx)
+static void queue_for_msc(struct bsc_msc_connection *con, struct msgb *msg) __attribute__((nonnull (1, 2)));
static void queue_for_msc(struct bsc_msc_connection *con, struct msgb *msg)
if (write_queue_enqueue(&con->write_queue, msg) != 0) {