]> granicus.if.org Git - graphviz/commitdiff
janitor - more "value computed is not used" fixes
authorellson <devnull@localhost>
Thu, 22 Dec 2005 18:29:51 +0000 (18:29 +0000)
committerellson <devnull@localhost>
Thu, 22 Dec 2005 18:29:51 +0000 (18:29 +0000)
lib/graph/agxbuf.c
lib/graph/agxbuf.h

index d9bfa398c63177fe6a45475735d318b8f1bcc345..bd1a7b0a4c2552ca66e9119fea8585c2f1f505ce 100644 (file)
@@ -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:
index cbfb172d2222292c948c435784676d03265143b7..e696a5bd9fd1e8668cc28aabf36c3931cad9da6a 100644 (file)
@@ -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.