Include "oslib/asprintf.h" where necessary
authorBart Van Assche <bvanassche@acm.org>
Sun, 5 Jan 2020 21:37:48 +0000 (13:37 -0800)
committerBart Van Assche <bvanassche@acm.org>
Mon, 6 Jan 2020 19:10:56 +0000 (11:10 -0800)
The header file "oslib/asprintf.h" must be included by every source file
that calls asprintf().

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
init.c
stat.c
verify.c
zbd.c

diff --git a/init.c b/init.c
index 60c8576..2f64726 100644 (file)
--- a/init.c
+++ b/init.c
@@ -32,6 +32,7 @@
 #include "steadystate.h"
 #include "blktrace.h"
 
+#include "oslib/asprintf.h"
 #include "oslib/getopt.h"
 #include "oslib/strcasestr.h"
 
diff --git a/stat.c b/stat.c
index e2bc8dd..2b30349 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -15,6 +15,7 @@
 #include "helper_thread.h"
 #include "smalloc.h"
 #include "zbd.h"
+#include "oslib/asprintf.h"
 
 #define LOG_MSEC_SLACK 1
 
index 37d2be8..a2c0d41 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -14,6 +14,7 @@
 #include "lib/rand.h"
 #include "lib/hweight.h"
 #include "lib/pattern.h"
+#include "oslib/asprintf.h"
 
 #include "crc/md5.h"
 #include "crc/crc64.h"
diff --git a/zbd.c b/zbd.c
index 99310c4..ee8bcb3 100644 (file)
--- a/zbd.c
+++ b/zbd.c
 #include <sys/stat.h>
 #include <unistd.h>
 #include <linux/blkzoned.h>
+
 #include "file.h"
 #include "fio.h"
 #include "lib/pow2.h"
 #include "log.h"
+#include "oslib/asprintf.h"
 #include "smalloc.h"
 #include "verify.h"
 #include "zbd.h"