-/* Copyright (c) 2011-2019. The SimGrid Team.
+/* Copyright (c) 2011-2021. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
XBT_LOG_NEW_DEFAULT_CATEGORY(dsend,"the dsend test");
-static void test_opts(int* argc, char **argv[]){
+static void test_opts(int argc, char* const argv[])
+{
int found = 0;
int option_index = 0;
static struct option long_options[] = {
{0, 0, 0, 0 }
};
while (1) {
- int ret = getopt_long(*argc, *argv, "s", long_options, &option_index);
+ int ret = getopt_long(argc, argv, "s", long_options, &option_index);
if(ret==-1)
break;
switch (ret) {
case 0:
- found++;
- break;
case 's':
found ++;
break;
MPI_Init(NULL, NULL);
/* test getopt_long function */
- test_opts(&argc, &argv);
+ test_opts(argc, argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request r;