A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git]
/
teshsuite
/
smpi
/
pt2pt-pingpong
/
pt2pt-pingpong.c
diff --git
a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
index
6ddb623
..
c46ea33
100644
(file)
--- a/
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
+++ b/
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
@@
-10,14
+10,12
@@
#include <mpi.h>
static void test_opts(int* argc, char **argv[]){
#include <mpi.h>
static void test_opts(int* argc, char **argv[]){
- int found = 0, ret;
+ int found = 0;
+ int ret;
while ((ret = getopt(*argc, *argv, "s")) >= 0)
{
while ((ret = getopt(*argc, *argv, "s")) >= 0)
{
- switch (ret) {
- case 's':
+ if (ret == 's')
found = 1;
found = 1;
- break;
- }
}
if (found!=1){
printf("(smpi_)getopt failed ! \n");
}
if (found!=1){
printf("(smpi_)getopt failed ! \n");