[PATCH] Docu update
[fio.git] / init.c
diff --git a/init.c b/init.c
index 44d3734194ebcaffee452582b732cbb042974d1c..3117d60e5d68e530fde45fed328b7b6bb4e39108 100644 (file)
--- a/init.c
+++ b/init.c
@@ -71,14 +71,6 @@ static struct thread_data *get_new_job(int global, struct thread_data *parent)
        td->fd = -1;
        td->thread_number = thread_number;
 
-       td->directory = NULL;
-       td->iolog_file = NULL;
-       td->exec_prerun = NULL;
-       td->exec_postrun = NULL;
-       td->ioscheduler = NULL;
-       td->sysfs_root = NULL;
-       td->file_name = NULL;
-
        return td;
 }
 
@@ -1021,7 +1013,7 @@ static void free_shm(void)
        struct shmid_ds sbuf;
 
        if (threads) {
-               shmdt(threads);
+               shmdt((void *) threads);
                threads = NULL;
                shmctl(shm_id, IPC_RMID, &sbuf);
        }