aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÁlvaro Neira Ayuso <anayuso@sysmocom.de>2014-05-20 07:44:07 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-05-20 09:47:02 +0200
commit7d36e5ed46b630203167fc9d5d28e0087fdbd394 (patch)
tree490d6aafe7836b22273639161d797cfaefd18021
parentafee0b7929a00500f9c204f3bc7e12f72451e832 (diff)
utils: Used the enum manuf_type_id in the parameter of add_manufacturer_id_label
Signed-off-by: Alvaro Neira Ayuso <anayuso@sysmocom.de>
-rw-r--r--src/osmo-bts-sysmo/utils.c4
-rw-r--r--src/osmo-bts-sysmo/utils.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bts-sysmo/utils.c b/src/osmo-bts-sysmo/utils.c
index 4b29afe..f674ba0 100644
--- a/src/osmo-bts-sysmo/utils.c
+++ b/src/osmo-bts-sysmo/utils.c
@@ -293,11 +293,11 @@ int check_ipa_header(struct msgb *msg)
return 0;
}
-int add_manufacturer_id_label(struct msgb *msg, int manuf_type_id)
+int add_manufacturer_id_label(struct msgb *msg, enum manuf_type_id type_id)
{
uint8_t *manuf;
- switch (manuf_type_id) {
+ switch (type_id) {
case IPACCESS_MANUF_ID:
manuf = msgb_push(msg, 1 + sizeof(ipaccess_magic));
manuf[0] = sizeof(ipaccess_magic);
diff --git a/src/osmo-bts-sysmo/utils.h b/src/osmo-bts-sysmo/utils.h
index b0c624f..6b8b7e4 100644
--- a/src/osmo-bts-sysmo/utils.h
+++ b/src/osmo-bts-sysmo/utils.h
@@ -30,7 +30,7 @@ enum oml_message_type {
static const char osmocom_magic[] = "org.osmocom";
static const char ipaccess_magic[] = "com.ipaccess";
-int add_manufacturer_id_label(struct msgb *msg, int manuf_type_id);
+int add_manufacturer_id_label(struct msgb *msg, enum manuf_type_id type_id);
void prepend_oml_ipa_header(struct msgb *msg);