blob: 5339209f6262de70a1375455485c5e2df412941c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-ef,v 1.1 2006/10/01 20:08:29 seb Exp $
--- agent/mibgroup/if-mib/ifTable/ifTable_interface.c.orig 2006-02-10 22:58:26.000000000 +0000
+++ agent/mibgroup/if-mib/ifTable/ifTable_interface.c
@@ -1409,7 +1409,7 @@ _mfd_ifTable_undo_setup_allocate(ifTable
netsnmp_assert(NULL != dl);
++(*(int*)&dl->data);
DEBUGMSGTL(("internal:ifTable:_mfd_ifTable_undo_setup_allocate",
- "++refcount = %d\n",(int)dl->data));
+ "++refcount = %d\n",(int)(long)dl->data));
}
return rc;
@@ -1487,9 +1487,9 @@ _mfd_ifTable_undo_setup_release(ifTable_
return; /* better to lead than double free */
--(*(int*)&dl->data);
- snmp_log(LOG_ERR, "--refcount at %d\n", (int)dl->data);
+ snmp_log(LOG_ERR, "--refcount at %d\n", (int)(long)dl->data);
- if (0 == (int)dl->data) {
+ if (0 == (int)(long)dl->data) {
netsnmp_access_interface_entry_free(rowreq_ctx->undo->ifentry);
ifTable_release_data(rowreq_ctx->undo);
rowreq_ctx->undo = NULL;
|