Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Declare the function as static, and make the compiler happy.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 8 Oct 2012 07:10:24 +0000 (09:10 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 8 Oct 2012 08:30:45 +0000 (10:30 +0200)
Also revert "add a declaration to remove a warning"
There's no need to make this function public.

This reverts commit ce0d4e3a7a5045051980d849700960a78ec78cfb.

src/smpi/private.h
src/smpi/smpi_global.c

index 7769ef4..1979e5a 100644 (file)
@@ -86,7 +86,6 @@ void smpi_process_simulated_start(void);
 double smpi_process_simulated_elapsed(void);
 
 void print_request(const char *message, MPI_Request request);
-void SMPI_comm_copy_buffer_callback(smx_action_t comm, void* buff, size_t buff_size);
 
 void smpi_global_init(void);
 void smpi_global_destroy(void);
index a427826..189c8ea 100644 (file)
@@ -213,7 +213,7 @@ void print_request(const char *message, MPI_Request request) {
          request->src, request->dst, request->tag, request->flags);
 }
 
-void SMPI_comm_copy_buffer_callback(smx_action_t comm, void* buff, size_t buff_size)
+static void SMPI_comm_copy_buffer_callback(smx_action_t comm, void* buff, size_t buff_size)
 {
   XBT_DEBUG("Copy the data over");
   memcpy(comm->comm.dst_buff, buff, buff_size);