summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2020-01-05 13:37:48 -0800
committerBart Van Assche <bvanassche@acm.org>2020-01-06 11:10:56 -0800
commitf5bff36e93580e9cc5f94a2b361c5eccaea9f2f5 (patch)
tree147ceba8c53f646b3407437d92f8532b1b8dd05e
parent060514e7e0b23e5441bf88ce80f6ec13c8b2399f (diff)
downloadfio-f5bff36e93580e9cc5f94a2b361c5eccaea9f2f5.tar.gz
fio-f5bff36e93580e9cc5f94a2b361c5eccaea9f2f5.tar.bz2
Include "oslib/asprintf.h" where necessary
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>
-rw-r--r--init.c1
-rw-r--r--stat.c1
-rw-r--r--verify.c1
-rw-r--r--zbd.c2
4 files changed, 5 insertions, 0 deletions
diff --git a/init.c b/init.c
index 60c85761..2f64726c 100644
--- 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 e2bc8ddb..2b303494 100644
--- 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
diff --git a/verify.c b/verify.c
index 37d2be8d..a2c0d41d 100644
--- 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 99310c49..ee8bcb30 100644
--- a/zbd.c
+++ b/zbd.c
@@ -13,10 +13,12 @@
#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"