From 6c8bbb423e3fe7accbdb885364aa0b6dd0e56644 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Wed, 24 Jan 2007 00:53:12 +0000 Subject: [PATCH] Replace TAB by space. This commit was SVN r13269. --- opal/util/output.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/opal/util/output.c b/opal/util/output.c index 0d18b151ee..9b7eae2981 100644 --- a/opal/util/output.c +++ b/opal/util/output.c @@ -675,14 +675,14 @@ static void output(int output_id, const char *format, va_list arglist) /* stdout output */ if (ldi->ldi_stdout) { - write(fileno(stdout), temp_str, strlen(temp_str)); + write(fileno(stdout), temp_str, (int)strlen(temp_str)); fflush(stdout); } /* stderr output */ if (ldi->ldi_stderr) { - write(fileno(stderr),temp_str, strlen(temp_str)); + write(fileno(stderr),temp_str, (int)strlen(temp_str)); fflush(stderr); } @@ -698,15 +698,15 @@ static void output(int output_id, const char *format, va_list arglist) } else if (ldi->ldi_file_num_lines_lost > 0) { char buffer[BUFSIZ]; memset(buffer, 0, BUFSIZ); - snprintf(buffer, BUFSIZ - 1, - "[WARNING: %d lines lost because the Open MPI process session directory did\n not exist when opal_output() was invoked]\n", - ldi->ldi_file_num_lines_lost); - write(ldi->ldi_fd, buffer, strlen(buffer)); + snprintf(buffer, BUFSIZ - 1, + "[WARNING: %d lines lost because the Open MPI process session directory did\n not exist when opal_output() was invoked]\n", + ldi->ldi_file_num_lines_lost); + write(ldi->ldi_fd, buffer, (int)strlen(buffer)); ldi->ldi_file_num_lines_lost = 0; } } if (ldi->ldi_fd != -1) { - write(ldi->ldi_fd, temp_str, total_len); + write(ldi->ldi_fd, temp_str, (int)total_len); } } OPAL_THREAD_UNLOCK(&mutex);