]> granicus.if.org Git - graphviz/commitdiff
janitor - fix some function prototype warnings
authorJohn Ellson <ellson@research.att.com>
Tue, 22 Dec 2015 18:13:31 +0000 (13:13 -0500)
committerJohn Ellson <ellson@research.att.com>
Tue, 22 Dec 2015 18:13:31 +0000 (13:13 -0500)
cmd/tools/ccomps.c
cmd/tools/gc.c

index f07c263dd65eb366f99929be73d6ea501cace047..34b46a60eaf48702d15a06c2f4bb97a8c5d4cf01 100644 (file)
@@ -260,7 +260,7 @@ static Agnode_t *base[SMALLBUF];
 static blk_t Blk;
 static stk_t Stk;
 
-static void initStk()
+static void initStk(void)
 {
     Blk.data = base;
     Blk.endp = Blk.data + SMALLBUF;
@@ -294,7 +294,7 @@ static void push(Agnode_t * np)
     *Stk.curp++ = np;
 }
 
-static Agnode_t *pop()
+static Agnode_t *pop(void)
 {
     if (Stk.curp == Stk.curblk->data) {
        if (Stk.curblk == Stk.fstblk)
index adf4ed84db82d94ae486019da99e4887e6255e77..fd42801163d21b89cf6b7990f6059936966f94ee 100644 (file)
@@ -175,7 +175,7 @@ static Agnode_t *base[SMALLBUF];
 static blk_t Blk;
 static stk_t Stk;
 
-static void initStk()
+static void initStk(void)
 {
     Blk.data = base;
     Blk.endp = Blk.data + SMALLBUF;
@@ -209,7 +209,7 @@ static void push(Agnode_t * np)
     *Stk.curp++ = np;
 }
 
-static Agnode_t *pop()
+static Agnode_t *pop(void)
 {
     if (Stk.curp == Stk.curblk->data) {
        if (Stk.curblk == Stk.fstblk)