blob: 026589f251d4ad0698b113e40990971d67a6256e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ea,v 1.3 2007/02/05 12:06:16 adam Exp $
--- snmplib/snmp_api.c.orig 2006-10-25 18:16:24.000000000 +0200
+++ snmplib/snmp_api.c
@@ -6818,7 +6818,7 @@ snmp_add_var(netsnmp_pdu *pdu,
}
#endif /* NETSNMP_DISABLE_MIB_LOADING */
atmp = inet_addr(value);
- if (atmp != (long) -1 || !strcmp(value, "255.255.255.255"))
+ if (atmp != (in_addr_t) -1 || !strcmp(value, "255.255.255.255"))
snmp_pdu_add_variable(pdu, name, name_length, ASN_IPADDRESS,
(u_char *) & atmp, sizeof(atmp));
else
|