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
Revalidate the tesh files after the recent MC depends change
[simgrid.git]
/
teshsuite
/
smpi
/
privatization
/
privatization.c
diff --git
a/teshsuite/smpi/privatization/privatization.c
b/teshsuite/smpi/privatization/privatization.c
index
143b479
..
c4ddc7a
100644
(file)
--- a/
teshsuite/smpi/privatization/privatization.c
+++ b/
teshsuite/smpi/privatization/privatization.c
@@
-1,3
+1,7
@@
+/* Copyright (c) 2017-2023. 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 <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-5,21
+9,20
@@
static int myvalue = 0;
static int myvalue = 0;
-static void test_opts(int* argc, char **argv[]){
+static void test_opts(int argc, char* const argv[])
+{
int found = 0;
static struct option long_options[] = {
{(char*)"long", no_argument, 0, 0 },
{0, 0, 0, 0 }
};
while (1) {
int found = 0;
static struct option long_options[] = {
{(char*)"long", no_argument, 0, 0 },
{0, 0, 0, 0 }
};
while (1) {
- int ret = getopt_long_only(
*argc, *
argv, "s", long_options, NULL);
+ int ret = getopt_long_only(
argc,
argv, "s", long_options, NULL);
if(ret==-1)
break;
switch (ret) {
case 0:
if(ret==-1)
break;
switch (ret) {
case 0:
- found++;
- break;
case 's':
found ++;
break;
case 's':
found ++;
break;
@@
-38,7
+41,7
@@
int main(int argc, char **argv)
MPI_Init(&argc, &argv);
/* test getopt_long function */
MPI_Init(&argc, &argv);
/* test getopt_long function */
- test_opts(
&argc, &
argv);
+ test_opts(
argc,
argv);
MPI_Comm_rank(MPI_COMM_WORLD, &me);
MPI_Comm_rank(MPI_COMM_WORLD, &me);