]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
snmp: update signature for create_ostring
authorVincent Bernat <vincent@bernat.ch>
Sat, 1 Feb 2020 15:30:11 +0000 (16:30 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sat, 1 Feb 2020 15:31:03 +0000 (16:31 +0100)
Again, this is backward compatible as an `const u_char*` can be casted
to `const void*`.

src/daemon/agent_priv.c

index c2a9b32fd31d7657f99f1993ca2dc34187c5cc44..84f1ad0e9d9f6f94689fc80a3a94aa222548978b 100644 (file)
@@ -217,7 +217,7 @@ agent_priv_unix_create_tstring(const char *string, int local, const char *defaul
 }
 
 static netsnmp_transport *
-agent_priv_unix_create_ostring(const u_char * o, size_t o_len, int local)
+agent_priv_unix_create_ostring(const void* o, size_t o_len, int local)
 {
        return agent_priv_unix_transport((char *)o, o_len, local);
 }