On tor, 2006-11-02 at 22:32 +0100, Magnus Fromreide wrote:
> 
> I will be forthcoming with a patch that removes the _clear_ functions as they
> aren't yet part of any released version. 

Ok, attached is a patch to remove the _clear_default_ functions as they
are of quite limited value.

It is - I think - OK to remove them now as they haven't been part of an
official release yet.

/MF

Index: clean/include/net-snmp/library/snmp_service.h
===================================================================
--- clean.orig/include/net-snmp/library/snmp_service.h	2006-11-02 23:48:43.000000000 +0100
+++ clean/include/net-snmp/library/snmp_service.h	2006-11-03 00:08:02.000000000 +0100
@@ -13,9 +13,6 @@
 extern const char*
 netsnmp_lookup_default_domain(const char* application);
 
-extern void
-netsnmp_clear_default_domain(void);
-
 extern int
 netsnmp_register_default_target(const char* application, const char* domain,
 				const char* target);
@@ -23,9 +20,6 @@
 extern const char*
 netsnmp_lookup_default_target(const char* application, const char* domain);
 
-extern void
-netsnmp_clear_default_target(void);
-
 #ifdef __cplusplus
 }
 #endif
Index: clean/snmplib/snmp_service.c
===================================================================
--- clean.orig/snmplib/snmp_service.c	2006-11-02 23:48:43.000000000 +0100
+++ clean/snmplib/snmp_service.c	2006-11-03 01:11:30.000000000 +0100
@@ -55,19 +55,6 @@
     return res;
 }
 
-void
-netsnmp_clear_default_domain(void)
-{
-    while (domains) {
-	struct netsnmp_lookup_domain *tmp = domains;
-	domains = domains->next;
-	free(tmp->application);
-	free(tmp->userDomain);
-	free(tmp->domain);
-	free(tmp);
-    }
-}
-
 static void
 netsnmp_register_user_domain(const char* token, char* cptr)
 {
@@ -216,20 +203,6 @@
     return res;
 }
 
-void
-netsnmp_clear_default_target(void)
-{
-    while (targets) {
-	struct netsnmp_lookup_target *tmp = targets;
-	targets = targets->next;
-	free(tmp->application);
-	free(tmp->domain);
-	free(tmp->userTarget);
-	free(tmp->target);
-	free(tmp);
-    }
-}
-
 static void
 netsnmp_register_user_target(const char* token, char* cptr)
 {
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to