mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-bts.git
synced 2025-11-01 20:53:45 +00:00
utils: Used the enum manuf_type_id in the parameter of add_manufacturer_id_label
Signed-off-by: Alvaro Neira Ayuso <anayuso@sysmocom.de>
This commit is contained in:
committed by
Holger Hans Peter Freyther
parent
afee0b7929
commit
7d36e5ed46
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user