From 96de5644ec10f2c7a090592b9fba8c6ca271b7e1 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Wed, 17 Jan 2018 21:36:52 +0100 Subject: [PATCH] [SMPI] Rename parameters from index to process_id in helper function --- src/smpi/internals/smpi_process.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.20.1