From: Vincent Bernat Date: Sat, 1 Feb 2020 15:27:42 +0000 (+0100) Subject: snmp: update signature of fmtaddr and send functions X-Git-Tag: 1.0.5~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f27e002f6993e59c0cc0b50f473dbab819c33ab2;p=thirdparty%2Flldpd.git snmp: update signature of fmtaddr and send functions This is backward compatible as a function accepting `const void *` will also accept `void *`. --- diff --git a/src/daemon/agent_priv.c b/src/daemon/agent_priv.c index 6a126fe8..c2a9b32f 100644 --- a/src/daemon/agent_priv.c +++ b/src/daemon/agent_priv.c @@ -37,7 +37,7 @@ static oid netsnmp_unix[] = { TRANSPORT_DOMAIN_LOCAL }; static netsnmp_tdomain unixDomain; static char * -agent_priv_unix_fmtaddr(netsnmp_transport *t, void *data, int len) +agent_priv_unix_fmtaddr(netsnmp_transport *t, const void *data, int len) { /* We don't bother to implement the full function */ return strdup("Local Unix socket with privilege separation: unknown"); @@ -80,7 +80,7 @@ recv_error: #define AGENT_WRITE_TIMEOUT 2000 static int -agent_priv_unix_send(netsnmp_transport *t, void *buf, int size, +agent_priv_unix_send(netsnmp_transport *t, const void *buf, int size, void **opaque, int *olength) { int rc = -1;