Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please the paranoid freak
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 25 Jun 2015 14:51:17 +0000 (16:51 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 25 Jun 2015 14:51:17 +0000 (16:51 +0200)
examples/msg/actions/storage_actions.c

index 981b11c..855f961 100644 (file)
@@ -30,7 +30,7 @@ static void log_action(const char *const *action, double date)
   }
 }
 
-msg_file_t get_file_descriptor(const char *file_name){
+static msg_file_t get_file_descriptor(const char *file_name){
   char full_name[1024];
   msg_file_t file = NULL;
 
@@ -86,7 +86,6 @@ static void action_read(const char *const *action) {
 
 static void action_close(const char *const *action) {
   const char *file_name = action[2];
-  char full_name[1024];
   msg_file_t file;
   double clock = MSG_get_clock();       /* this "call" is free thanks to inlining */