From 857d1e4ddb06c91505dddc009d76314855a32ec8 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sat, 20 Jul 2024 19:46:34 +0200 Subject: [PATCH] Buildfix --- network/cloud_sync_driver.h | 2 +- tasks/task_cloudsync.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/network/cloud_sync_driver.h b/network/cloud_sync_driver.h index b69c6b9810a..f834a5f8c4e 100644 --- a/network/cloud_sync_driver.h +++ b/network/cloud_sync_driver.h @@ -73,7 +73,7 @@ bool cloud_sync_end(cloud_sync_complete_handler_t cb, void *user_data); bool cloud_sync_read(const char *path, const char *file, cloud_sync_complete_handler_t cb, void *user_data); bool cloud_sync_update(const char *path, RFILE *file, cloud_sync_complete_handler_t cb, void *user_data); -bool cloud_sync_delete(const char *path, cloud_sync_complete_handler_t cb, void *user_data); +bool cloud_sync_free(const char *path, cloud_sync_complete_handler_t cb, void *user_data); RETRO_END_DECLS diff --git a/tasks/task_cloudsync.c b/tasks/task_cloudsync.c index b68c9364888..144f4317b9b 100644 --- a/tasks/task_cloudsync.c +++ b/tasks/task_cloudsync.c @@ -320,7 +320,7 @@ static struct string_list *task_cloud_sync_directory_map(void) char dir[PATH_MAX_LENGTH]; list = string_list_new(); - if (settings->bools.cloud_sync_sync_configs) + if (settings->bools.cloud_sync_sync_configs) { string_list_append(list, "config", attr); fill_pathname_application_special(dir, @@ -328,7 +328,7 @@ static struct string_list *task_cloud_sync_directory_map(void) list->elems[list->size - 1].userdata = strdup(dir); } - if (settings->bools.cloud_sync_sync_saves) + if (settings->bools.cloud_sync_sync_saves) { string_list_append(list, "saves", attr); list->elems[list->size - 1].userdata = strdup(dir_get_ptr(RARCH_DIR_SAVEFILE)); @@ -778,7 +778,7 @@ static void task_cloud_sync_delete_server_file(task_cloud_sync_state_t *sync_sta RARCH_LOG(CSPFX "deleting %s\n", key); sync_state->waiting = true; - if (!cloud_sync_delete(key, task_cloud_sync_delete_cb, sync_state)) + if (!cloud_sync_free(key, task_cloud_sync_delete_cb, sync_state)) { /* if the delete fails, resurrect the hash from the last sync */ size_t idx;