summaryrefslogtreecommitdiffstats
path: root/src/squark-auth-snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/squark-auth-snmp.c')
-rw-r--r--src/squark-auth-snmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/squark-auth-snmp.c b/src/squark-auth-snmp.c
index 81b846d..aa45c73 100644
--- a/src/squark-auth-snmp.c
+++ b/src/squark-auth-snmp.c
@@ -389,10 +389,10 @@ void link_switch(const char *a, int ap, const char *b, int bp)
struct switch_port_info *spia, *spib;
sockaddr_any addr;
- sia = get_switch(addr_parse(BLOB_STRLEN(a), &addr));
+ sia = get_switch(addr_parse(BLOB_STRLEN((char *) a), &addr));
spia = get_switch_port(sia, ap);
- sib = get_switch(addr_parse(BLOB_STRLEN(b), &addr));
+ sib = get_switch(addr_parse(BLOB_STRLEN((char *) b), &addr));
spib = get_switch_port(sib, bp);
addr_copy(&spia->link_partner, &sib->addr);
@@ -1110,9 +1110,9 @@ int main(int argc, char **argv)
if (l2_root == NULL)
l2_root = l3_root;
- l3_root_dev = get_switch(addr_parse(BLOB_STRLEN(l3_root), &addr));
+ l3_root_dev = get_switch(addr_parse(BLOB_STRLEN((char *) l3_root), &addr));
l3_if_ndx = resolve_ifName2ifIndex(l3_root_dev, BLOB_STRLEN((char *) l3_ifname));
- l2_root_dev = get_switch(addr_parse(BLOB_STRLEN(l2_root), &addr));
+ l2_root_dev = get_switch(addr_parse(BLOB_STRLEN((char *) l2_root), &addr));
l2_vlan_ndx = atoi(l2_vlan);
username_format_flags = parse_format(username_format);