From: Christian Heinrich Date: Wed, 17 Jan 2018 20:36:52 +0000 (+0100) Subject: [SMPI] Rename parameters from index to process_id in helper function X-Git-Tag: v3.19~312^2~16 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/96de5644ec10f2c7a090592b9fba8c6ca271b7e1 [SMPI] Rename parameters from index to process_id in helper function --- diff --git a/src/smpi/internals/smpi_process.cpp b/src/smpi/internals/smpi_process.cpp index a28de3510b..313324acb9 100644 --- a/src/smpi/internals/smpi_process.cpp +++ b/src/smpi/internals/smpi_process.cpp @@ -17,15 +17,15 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_process, smpi, "Logging specific to SMPI (k #define MAILBOX_NAME_MAXLEN (5 + sizeof(int) * 2 + 1) -static char *get_mailbox_name(char *str, int index) +static char* get_mailbox_name(char* str, int process_id) { - snprintf(str, MAILBOX_NAME_MAXLEN, "SMPI-%0*x", static_cast(sizeof(int) * 2), static_cast(index)); + snprintf(str, MAILBOX_NAME_MAXLEN, "SMPI-%0*x", static_cast(sizeof(int) * 2), static_cast(process_id)); return str; } -static char *get_mailbox_name_small(char *str, int index) +static char* get_mailbox_name_small(char* str, int process_id) { - snprintf(str, MAILBOX_NAME_MAXLEN, "small%0*x", static_cast(sizeof(int) * 2), static_cast(index)); + snprintf(str, MAILBOX_NAME_MAXLEN, "small%0*x", static_cast(sizeof(int) * 2), static_cast(process_id)); return str; }