--- fsl.c 2002/07/16 13:20:33 1.3
+++ fsl.c 2002/07/16 13:36:26 1.4
@@ -144,13 +144,16 @@
int rc;
cfg_node_t *cfgchld;
cfg_rc_t cfgrv;
+ cfg_node_type_t cfgtyp;
char *cp;
fprintf(stderr, "DEBUG: diving\n");
while (cfgnode != NULL) {
if ((cfgrv = cfg_node_get(cfg, cfgnode, CFG_NODE_ATTR_TOKEN, &cp)) != CFG_OK) {
(void)cfg_error(cfg, cfgrv, &cp); fprintf(stderr, "ERROR: cfg_node_get(T) failed with error %s (%d)\n", cp, cfgrv); CU(1); }
- fprintf(stderr, "DEBUG: cfgnode=0x%.8lx, *cp=\"%s\"\n", (unsigned long)cfgnode, cp);
+ if ((cfgrv = cfg_node_get(cfg, cfgnode, CFG_NODE_ATTR_TYPE, &cfgtyp)) != CFG_OK) {
+ (void)cfg_error(cfg, cfgrv, &cp); fprintf(stderr, "ERROR: cfg_node_get(y) failed with error %s (%d)\n", cp, cfgrv); CU(1); }
+ fprintf(stderr, "DEBUG: cfgnode=0x%.8lx, *cp=\"%s\", type=%d\n", (unsigned long)cfgnode, cp, cfgtyp);
if ((cfgrv = cfg_node_get(cfg, cfgnode, CFG_NODE_ATTR_CHILD1, &cfgchld)) != CFG_OK) {
(void)cfg_error(cfg, cfgrv, &cp); fprintf(stderr, "ERROR: cfg_node_get(C) failed with error %s (%d)\n", cp, cfgrv); CU(1); }
if (cfgchld != NULL)
|