From: KAMEZAWA Hiroyuki Date: Thu, 28 Oct 2010 10:24:32 +0000 (+0900) Subject: audit: printf warning fix X-Git-Tag: v0.8.5~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=554603421051bdf37aee11ffaead47be1d733a49;p=thirdparty%2Flibvirt.git audit: printf warning fix fix warning CC libvirt_util_la-virtaudit.lo cc1: warnings being treated as errors util/virtaudit.c: In function 'virAuditEncode': util/virtaudit.c:146: error: implicit declaration of function 'virAsprintf' [-Wimplicit-function-declaration] util/virtaudit.c:146: error: nested extern declaration of 'virAsprintf' [-Wnested-externs] --- diff --git a/AUTHORS b/AUTHORS index cb1fc11d33..449a45032b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -134,6 +134,7 @@ Patches have also been contributed by: Harsh Prateek Bora John Morrissey Osier Yang + Kamezawa Hiroyuki [....send patches to get your name here....] diff --git a/src/util/virtaudit.c b/src/util/virtaudit.c index d5686608ff..6af7af0abf 100644 --- a/src/util/virtaudit.c +++ b/src/util/virtaudit.c @@ -30,6 +30,7 @@ #include "virterror_internal.h" #include "logging.h" #include "virtaudit.h" +#include "util.h" /* Provide the macros in case the header file is old. FIXME: should be removed. */