summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp-devel/files/patch-cache_handler.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2010-01-19 23:03:38 +0000
committerPav Lucistnik <pav@FreeBSD.org>2010-01-19 23:03:38 +0000
commit45a35031c136b1bcc12ef628dbcea7b30641e13c (patch)
treefa222c3b356b2930265947754693ea550621b9ae /net-mgmt/net-snmp-devel/files/patch-cache_handler.c
parent- Update to 2.7-20100117 (diff)
- Garbage collect unfinished repocopy (seven months)
OK'ed by: pgollucci (maintainer)
Notes
Notes: svn path=/head/; revision=248176
Diffstat (limited to 'net-mgmt/net-snmp-devel/files/patch-cache_handler.c')
-rw-r--r--net-mgmt/net-snmp-devel/files/patch-cache_handler.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-cache_handler.c b/net-mgmt/net-snmp-devel/files/patch-cache_handler.c
deleted file mode 100644
index 0bcb75fb057b..000000000000
--- a/net-mgmt/net-snmp-devel/files/patch-cache_handler.c
+++ /dev/null
@@ -1,34 +0,0 @@
---- agent/helpers/cache_handler.c.orig 2009-01-25 22:40:13.000000000 +0900
-+++ agent/helpers/cache_handler.c 2009-01-25 22:44:30.000000000 +0900
-@@ -173,6 +173,31 @@
- return cache;
- }
-
-+/** frees a cache
-+ */
-+int
-+netsnmp_cache_free(netsnmp_cache *cache)
-+{
-+ netsnmp_cache *pos;
-+
-+ if (NULL == cache)
-+ return SNMPERR_SUCCESS;
-+
-+ for (pos = cache_head; pos; pos = pos->next) {
-+ if (pos == cache) {
-+ snmp_log(LOG_WARNING, "not freeing cache (still in list)\n");
-+ return SNMP_ERR_GENERR;
-+ }
-+ }
-+
-+ if (cache->rootoid)
-+ free(cache->rootoid);
-+
-+ free(cache);
-+
-+ return SNMPERR_SUCCESS;
-+}
-+
- /** callback function to call cache load function */
- static void
- _timer_reload(unsigned int regNo, void *clientargs)