X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/189f463aedf5f30f719709ec33a214063241d942..a63d9772e87d37847b7d634abe798c93934f56bb:/examples/smpi/sendrecv.c diff --git a/examples/smpi/sendrecv.c b/examples/smpi/sendrecv.c index da30874b9a..6d5ba17516 100644 --- a/examples/smpi/sendrecv.c +++ b/examples/smpi/sendrecv.c @@ -1,7 +1,13 @@ +/* Copyright (c) 2009, 2010. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #include "mpi.h" #include -int test(int myid, int numprocs) { +static int test(int myid, int numprocs) { // The tags should match on the sender and receiver side. // The distinction between sendtag and recvtag is mainly // useful to make some other Recv or Send calls match the sendrecv. @@ -13,7 +19,6 @@ int test(int myid, int numprocs) { int left, right; int buffer[BUFLEN], buffer2[BUFLEN]; int i; - MPI_Request request; MPI_Status status; for (i=0;i