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:
Álvaro Neira Ayuso
2014-05-20 07:44:07 +02:00
committed by Holger Hans Peter Freyther
parent afee0b7929
commit 7d36e5ed46
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);