OSSP CVS Repository

ossp - Difference in ossp-pkg/cfg/cfg_syn.c versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/cfg/cfg_syn.c 1.4 -> 1.5

--- cfg_syn.c    2002/07/05 15:21:19     1.4
+++ cfg_syn.c    2002/07/05 15:32:42     1.5
@@ -275,3 +275,23 @@
     return CFG_OK;
 }
 
+static cfg_rc_t cfg_syn_destroy_node(cfg_node_t *node)
+{
+    if (node == NULL)
+        return CFG_ERR_ARG;
+    if (node->child1 != NULL)
+        cfg_syn_destroy_node(node->child1);
+    if (node->rbroth != NULL)
+        cfg_syn_destroy_node(node->rbroth);
+    cfg_node_destroy(node);
+    return CFG_OK;
+}
+
+cfg_rc_t cfg_syn_destroy(cfg_t *cfg, cfg_node_t *node)
+{
+    if (node == NULL)
+        return CFG_ERR_ARG;
+    cfg_syn_destroy_node(node);
+    return CFG_OK;
+}
+

CVSTrac 2.0.1