Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Put forward declaration of static function in c file, not in header.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 15 Nov 2012 15:10:55 +0000 (16:10 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 15 Nov 2012 15:10:55 +0000 (16:10 +0100)
src/surf/storage.c
src/surf/storage_private.h

index 268f141..5dd92c0 100644 (file)
@@ -36,6 +36,7 @@ static xbt_dynar_t storage_list;
 #define GENERIC_ACTION(action) GENERIC_LMM_ACTION(action).generic_action
 
 static xbt_dict_t parse_storage_content(char *filename, unsigned long *used_size);
 #define GENERIC_ACTION(action) GENERIC_LMM_ACTION(action).generic_action
 
 static xbt_dict_t parse_storage_content(char *filename, unsigned long *used_size);
+static int storage_action_unref(surf_action_t action);
 static void storage_action_state_set(surf_action_t action, e_surf_action_state_t state);
 static surf_action_t storage_action_execute (void *storage, double size, e_surf_action_storage_type_t type);
 static void free_storage_content(void *p);
 static void storage_action_state_set(surf_action_t action, e_surf_action_state_t state);
 static surf_action_t storage_action_execute (void *storage, double size, e_surf_action_storage_type_t type);
 static void free_storage_content(void *p);
index e41cde0..c62f265 100644 (file)
@@ -54,6 +54,4 @@ typedef struct surf_action_storage {
   void *storage;
 } s_surf_action_storage_t, *surf_action_storage_t;
 
   void *storage;
 } s_surf_action_storage_t, *surf_action_storage_t;
 
-static int storage_action_unref(surf_action_t action);
-
 #endif /* STORAGE_PRIVATE_H_ */
 #endif /* STORAGE_PRIVATE_H_ */