summaryrefslogtreecommitdiffstats
path: root/include/osmocore
diff options
context:
space:
mode:
authorAlex Badea2011-01-15 18:43:42 +0100
committerSylvain Munaut2011-01-15 23:41:00 +0100
commitd126ab988b4f63c31e803dccbb2a08ac6f16e9ce (patch)
tree877b69170ac36167a78a1ab03280d3f7adf13494 /include/osmocore
parentdebian: Make the -dev package depend on the normal one (diff)
downloadlibosmocore-d126ab988b4f63c31e803dccbb2a08ac6f16e9ce.tar.gz
libosmocore-d126ab988b4f63c31e803dccbb2a08ac6f16e9ce.tar.xz
libosmocore-d126ab988b4f63c31e803dccbb2a08ac6f16e9ce.zip
gsm 03.41: fix GSM341_MSG_CODE macro argument
One usage of the "ms" argument is typoed as "msg". Fix it to prevent subtle future failures. Also paranthesize the macro argument for good measure. Signed-off-by: Alex Badea <vamposdecampos@gmail.com>
Diffstat (limited to 'include/osmocore')
-rw-r--r--include/osmocore/protocol/gsm_03_41.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocore/protocol/gsm_03_41.h b/include/osmocore/protocol/gsm_03_41.h
index 3b1b7c9..54365cb 100644
--- a/include/osmocore/protocol/gsm_03_41.h
+++ b/include/osmocore/protocol/gsm_03_41.h
@@ -40,7 +40,7 @@ struct gsm341_etws_message {
uint8_t data[0];
} __attribute__((packed));
-#define GSM341_MSG_CODE(ms) (ms->serial.code_lo | (msg->serial.code_hi << 4))
+#define GSM341_MSG_CODE(ms) ((ms)->serial.code_lo | ((ms)->serial.code_hi << 4))
/* Section 9.3.2.1 - Geographical Scope */
#define GSM341_GS_CELL_WIDE_IMMED 0