X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=3117d60e5d68e530fde45fed328b7b6bb4e39108;hp=0ec8e9d5ddd41f88a5e775d1a19d04ca1d001cea;hb=2c0ecd28459b6a1b236c865defb5ef76ce8bfa02;hpb=e463f17941b272078e9c3d3e043f486b92c85be9 diff --git a/init.c b/init.c index 0ec8e9d5..3117d60e 100644 --- a/init.c +++ b/init.c @@ -1013,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); }