]> granicus.if.org Git - graphviz/commitdiff
add a return value to push() in libpack
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Sep 2020 20:52:10 +0000 (13:52 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 4 Oct 2020 18:51:54 +0000 (11:51 -0700)
Related to #1801.

lib/pack/ccomps.c

index 6c41aaee2b73ccdde57343d2e42678979dc71078..a8a1d3147ce82e03112fa1e2fb605ef9cb3ebb99 100644 (file)
@@ -72,7 +72,7 @@ static void freeStk (stk_t* sp)
     }
 }
 
-static void push(stk_t* sp, Agnode_t * np)
+static int push(stk_t* sp, Agnode_t * np)
 {
     if (sp->curp == sp->curblk->endp) {
        if (sp->curblk->next == NULL) {
@@ -96,6 +96,8 @@ static void push(stk_t* sp, Agnode_t * np)
     }
     MARK(sp,np);
     *sp->curp++ = np;
+
+    return 0;
 }
 
 static Agnode_t *pop(stk_t* sp)