From: ellson Date: Thu, 22 Dec 2005 18:29:51 +0000 (+0000) Subject: janitor - more "value computed is not used" fixes X-Git-Tag: LAST_LIBGRAPH~32^2~6911 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c1786054a88a9edb1baebb2bd750f0d9884a126;p=graphviz janitor - more "value computed is not used" fixes --- diff --git a/lib/graph/agxbuf.c b/lib/graph/agxbuf.c index d9bfa398c..bd1a7b0a4 100644 --- a/lib/graph/agxbuf.c +++ b/lib/graph/agxbuf.c @@ -44,7 +44,7 @@ void agxbinit(agxbuf * xb, unsigned int hint, unsigned char *init) /* agxbmore; * Expand buffer to hold at least ssz more bytes. */ -int agxbmore(agxbuf * xb, unsigned int ssz) +void agxbmore(agxbuf * xb, unsigned int ssz) { int cnt; /* current no. of characters in buffer */ int size; /* current buffer size */ @@ -66,7 +66,6 @@ int agxbmore(agxbuf * xb, unsigned int ssz) xb->buf = nbuf; xb->ptr = xb->buf + cnt; xb->eptr = xb->buf + nsize; - return 0; } /* agxbput_n: diff --git a/lib/graph/agxbuf.h b/lib/graph/agxbuf.h index cbfb172d2..e696a5bd9 100644 --- a/lib/graph/agxbuf.h +++ b/lib/graph/agxbuf.h @@ -61,7 +61,7 @@ extern "C" { /* agxbmore: * Expand buffer to hold at least ssz more bytes. */ - extern int agxbmore(agxbuf * xb, int unsigned ssz); + extern void agxbmore(agxbuf * xb, int unsigned ssz); /* agxbputc: * Add character to buffer.