From 554603421051bdf37aee11ffaead47be1d733a49 Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki Date: Thu, 28 Oct 2010 19:24:32 +0900 Subject: [PATCH] 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] --- AUTHORS | 1 + src/util/virtaudit.c | 1 + 2 files changed, 2 insertions(+) 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. */ -- GitLab