Split mutex.c and .h each into three files
[fio.git] / helper_thread.c
index 64e5a3c9d79277fe160065b9cab8f42a27ab78c6..1d89d3a17ce070aa70d781e2b1fe1cb1af67c72f 100644 (file)
@@ -2,6 +2,7 @@
 #include "smalloc.h"
 #include "helper_thread.h"
 #include "steadystate.h"
+#include "pshared.h"
 
 static struct helper_data {
        volatile int exit;
@@ -156,7 +157,7 @@ int helper_thread_create(struct fio_mutex *startup_mutex, struct sk_out *sk_out)
        struct helper_data *hd;
        int ret;
 
-       hd = smalloc(sizeof(*hd));
+       hd = scalloc(1, sizeof(*hd));
 
        setup_disk_util();
        steadystate_setup();