-/* Copyright (c) 2009-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2009-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. */
free(pointer);
pointer = calloc(100, sizeof(int));
int rank;
- int err = MPI_Comm_rank(MPI_COMM_WORLD, &rank); /* Get id of this process */
- if (err != MPI_SUCCESS) {
+ /* Get id of this process */
+ if (int err = MPI_Comm_rank(MPI_COMM_WORLD, &rank); err != MPI_SUCCESS) {
fprintf(stderr, "MPI_Comm_rank failed: %d", err);
MPI_Abort(MPI_COMM_WORLD, EXIT_FAILURE);
exit(EXIT_FAILURE);