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 60c857611d3cc26c316c545f0fafcc0b851a2693..2f64726cc07bfba971922ca6c2d55cde5cdb5e30 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 e2bc8ddb5fa4a554cd45b7c2ff9f0fd16f00e91d..2b303494dc7c9e0b534fa28b803d76ee36314912 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 37d2be8dd9403c6a2bede3c61079214abe971cac..a2c0d41dbb8c8f1b2136a5f33af79d069c51faec 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 99310c49043b8cf79ca63b51689ecd6817eab99f..ee8bcb30416a0fdc12af8a9ce79d5e9d1e341427 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"