c-xvasprintf: Fix "implicit declaration of function" GCC warning.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 26 Dec 2012 05:18:14 +0000 (21:18 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 26 Dec 2012 05:18:14 +0000 (21:18 -0800)
* lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
c_vasprintf() prototype.

ChangeLog
lib/c-xvasprintf.c

index 211cc59..a454de2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
+
+       c-xvasprintf: Fix "implicit declaration of function" GCC warning.
+       * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
+       c_vasprintf() prototype.
+
 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
 
        c-vasprintf: Fix "empty declaration" warning reported by GCC.
index 87be542..b345c39 100644 (file)
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <stdio.h>
 
+#include "c-vasprintf.h"
 #include "xalloc.h"
 
 char *