[osmo-bts PATCH 4/5] utils: Used the enum manuf_type_id in the parameter of add_manufacturer_id_label

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Alvaro Neira Ayuso anayuso at sysmocom.de
Tue May 20 05:44:07 UTC 2014


From: Álvaro Neira Ayuso <anayuso at sysmocom.de>

Signed-off-by: Alvaro Neira Ayuso <anayuso at sysmocom.de>
---
 src/osmo-bts-sysmo/utils.c |    4 ++--
 src/osmo-bts-sysmo/utils.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/osmo-bts-sysmo/utils.c b/src/osmo-bts-sysmo/utils.c
index e676a3c..8652588 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 dbbe443..a629ac1 100644
--- a/src/osmo-bts-sysmo/utils.h
+++ b/src/osmo-bts-sysmo/utils.h
@@ -30,7 +30,7 @@ enum check_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);
 
-- 
1.7.10.4





More information about the OpenBSC mailing list