From 830f4032eba6a6664979cd31165f0ae9a1cbef02 Mon Sep 17 00:00:00 2001 From: suter Date: Fri, 8 Nov 2013 21:53:29 +0100 Subject: [PATCH] no need for const here (cherry picked from commit 49288d92b2e6ae5e8df783feb397475dae25d753) --- src/include/surf/surf.h | 2 +- src/surf/storage.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index 9de02bec77..e59ba761e3 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -238,7 +238,7 @@ typedef struct surf_storage_model_extension_public { surf_action_t(*stat) (void *storage, surf_file_t fd); surf_action_t(*ls) (void *storage, const char *path); xbt_dict_t(*get_properties) (const void *storage); - void (*rename) (const void *storage, const char *src, const char *dest); + void (*rename) (void *storage, const char *src, const char *dest); xbt_dict_t(*get_content) (void *storage); sg_storage_size_t(*get_size) (void *storage); } s_surf_model_extension_storage_t; diff --git a/src/surf/storage.c b/src/surf/storage.c index 79974c7eb2..5fc65ef5a5 100644 --- a/src/surf/storage.c +++ b/src/surf/storage.c @@ -226,7 +226,7 @@ static sg_storage_size_t storage_get_size(void *storage){ return ((storage_t)storage_resource)->size; } -static void storage_file_rename(const void *storage, const char *src, const char *dest) +static void storage_file_rename(void *storage, const char *src, const char *dest) { void *storage_resource = surf_storage_resource_priv(storage); -- 2.30.2