From 7747dc4f9e80f3e4da90f89e599cb0025c4bbf59 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 22 Jun 2015 21:23:13 +0200 Subject: [PATCH] (autosave.c) Cleanups --- autosave.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/autosave.c b/autosave.c index bc5e0d8d4e..7e2a599efb 100644 --- a/autosave.c +++ b/autosave.c @@ -139,10 +139,10 @@ autosave_t *autosave_new(const char *path, const void *data, size_t size, if (!handle) return NULL; - handle->bufsize = size; - handle->interval = interval; - handle->path = path; - handle->buffer = malloc(size); + handle->bufsize = size; + handle->interval = interval; + handle->path = path; + handle->buffer = malloc(size); handle->retro_buffer = data; if (!handle->buffer) @@ -152,11 +152,11 @@ autosave_t *autosave_new(const char *path, const void *data, size_t size, } memcpy(handle->buffer, handle->retro_buffer, handle->bufsize); - handle->lock = slock_new(); - handle->cond_lock = slock_new(); - handle->cond = scond_new(); + handle->lock = slock_new(); + handle->cond_lock = slock_new(); + handle->cond = scond_new(); - handle->thread = sthread_create(autosave_thread, handle); + handle->thread = sthread_create(autosave_thread, handle); return handle; }