changeset 17220:4c84368f0916

c-xvasprintf: Fix "implicit declaration of function" GCC warning. * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for c_vasprintf() prototype.
author Ben Pfaff <blp@cs.stanford.edu>
date Tue, 25 Dec 2012 21:18:14 -0800
parents 9bba47f98423
children b1657348957e
files ChangeLog lib/c-xvasprintf.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/c-xvasprintf.c
+++ b/lib/c-xvasprintf.c
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <stdio.h>
 
+#include "c-vasprintf.h"
 #include "xalloc.h"
 
 char *