chiark / gitweb /
Do not delete spec.sgml.in.
[userv.git] / lib.h
diff --git a/lib.h b/lib.h
index fc9d01604a596e0dd1dde1522a2bbba3960c36b0..81ff9fcec04fdcd18ad7da34f5c89ed91632a67f 100644 (file)
--- a/lib.h
+++ b/lib.h
@@ -30,7 +30,8 @@ void miscerror(const char *what) NONRETURNING;
 void syscallerror(const char *what) NONRETURNING;
 void *xmalloc(size_t s);
 void *xrealloc(void *p, size_t s);
-void makeroom(char **buffer, int *size, int needed);
+int makeroom(char **buffer, int *size, int needed);
+/* makeroom returns -1 if needed was far too large; otherwise returns 0. */
 
 /* It doesn't appear to be documented whether [v]snprintf put a null
  * in if they overrun.  GNU libc does, but I don't want to rely on