summaryrefslogtreecommitdiffstats
path: root/src/squark-auth-snmp.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-11-07 01:12:05 +0200
committerTimo Teräs <timo.teras@iki.fi>2010-11-07 01:12:05 +0200
commit660b77270e599fed9a8a6bc94a0e2d44b8f282dd (patch)
treeba2a630e6365e96c7ec5a43bfde757a870c99a5e /src/squark-auth-snmp.c
parent25593b5e6fea76ed7c08db586924032c0810c27e (diff)
downloadsquark-660b77270e599fed9a8a6bc94a0e2d44b8f282dd.tar.bz2
squark-660b77270e599fed9a8a6bc94a0e2d44b8f282dd.tar.xz
build: use build system from apk-tools/opennhrp
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);