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;
}
struct shmid_ds sbuf;
if (threads) {
- shmdt(threads);
+ shmdt((void *) threads);
threads = NULL;
shmctl(shm_id, IPC_RMID, &sbuf);
}