]> granicus.if.org Git - graphviz/commitdiff
add a return value to add_tree_edge()
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Nov 2020 19:55:15 +0000 (11:55 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Jan 2021 04:39:06 +0000 (20:39 -0800)
Related to #1801.

lib/common/ns.c

index ec3f3031a47c204a8acb2d7ae24f586d01900653..74d9c7afabaa027a48c5c2670f51ec57085cde58 100644 (file)
@@ -42,7 +42,7 @@ static int Search_size;
 static nlist_t Tree_node;
 static elist Tree_edge;
 
-static void add_tree_edge(edge_t * e)
+static int add_tree_edge(edge_t * e)
 {
     node_t *n;
     //fprintf(stderr,"add tree edge %p %s ", (void*)e, agnameof(agtail(e))) ; fprintf(stderr,"%s\n", agnameof(aghead(e))) ;
@@ -72,6 +72,7 @@ static void add_tree_edge(edge_t * e)
        agerr(AGERR, "add_tree_edge: empty inedge list\n");
        longjmp (jbuf, 1);
     }
+    return 0;
 }
 
 static void exchange_tree_edges(edge_t * e, edge_t * f)