Release bumped to "gts4".
[tac_plus.git] / cfgfile.c
index 7c2353a..041993c 100644 (file)
--- a/cfgfile.c
+++ b/cfgfile.c
@@ -53,7 +53,6 @@ static int parse_conditional_block TAC_ARGS((ENTITY *entity));
 static NODE *parse_cmd_matches TAC_ARGS((void));
 static NODE *parse_attrs TAC_ARGS((void));
 static void getsym TAC_ARGS((void));
-static ENTITY *new_entity TAC_ARGS((int type, char *name, int line));
 static enum eval_result entity_svc_default TAC_ARGS((ENTITY *entity));
 
 
@@ -1091,7 +1090,8 @@ enlist_entity_connect()
            item->child = NULL;         /* don't free string ref'ed from 'child_entity'! */
        }
 
-       enlist_entity_direct(parent_entity, child_entity, item->when);
+       if (!enlist_entity_direct(parent_entity, child_entity, item->when))
+           return (1);         /* entities not found */
 
        enlist_entity_list = item->next;
        item->when = NULL;
@@ -1250,9 +1250,9 @@ ENTITY *entity;
 
 /* passed 'name' WILL be directly stored to returned ENTITY, don't touch it! */
 
-static ENTITY *new_entity TAC_ARGS((int type, char *name, int line));
+ENTITY *new_entity TAC_ARGS((int type, char *name, int line));
 
-static ENTITY *
+ENTITY *
 new_entity(type, name, line)
 int type;
 char *name;