X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ce2c1e5bd59b2d28d3361a0f2d31b6ce309a0595..505d827ccafbb31eb15cfbd72bdc6079e50525e2:/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 dcaf7e6131..c55917b436 100644 --- a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c +++ b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c @@ -1,6 +1,6 @@ /* A simple example ping-pong program to test MPI_Send and MPI_Recv */ -/* Copyright (c) 2009-2019. The SimGrid Team. +/* Copyright (c) 2009-2023. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -9,11 +9,11 @@ #include #include -static void test_opts(int* argc, char **argv[]){ +static void test_opts(int argc, char* const argv[]) +{ int found = 0; int ret; - while ((ret = getopt(*argc, *argv, "s")) >= 0) - { + while ((ret = getopt(argc, argv, "s")) >= 0) { if (ret == 's') found = 1; } @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) int err = MPI_Init(&argc, &argv); /* Initialize MPI */ /* test getopt function */ - test_opts(&argc, &argv); + test_opts(argc, argv); if (err != MPI_SUCCESS) { printf("MPI initialization failed!\n");