1.6.5 release: Fixed several build errors reported by Iuri Prilepov on Ubuntu 11.04.

This commit is contained in:
Marc Howison
2011-09-23 14:47:11 +00:00
parent 819ddc4704
commit 39cee80bc7
9 changed files with 44 additions and 11 deletions
+1
View File
@@ -1,3 +1,4 @@
#include <string.h>
#include <H5Part.h>
#include "testframe.h"
+2 -2
View File
@@ -536,7 +536,7 @@ TestPrintf(const char *format, ...)
int nproc;
MPI_Comm_rank(MPI_COMM_WORLD, &nproc);
if ( nproc == 0 || VERBOSE_HI ) {
char *format2 = malloc(strlen(format)+8);
char *format2 = (char*)malloc(strlen(format)+8);
sprintf(format2, "[%d] %s", nproc, format);
va_start(arglist, format);
ret_value = vprintf(format2, arglist);
@@ -570,7 +570,7 @@ TestErrPrintf(const char *format, ...)
int nproc;
MPI_Comm_rank(MPI_COMM_WORLD, &nproc);
if ( nproc == 0 || VERBOSE_HI ) {
char *format2 = malloc(strlen(format)+8);
char *format2 = (char*)malloc(strlen(format)+8);
sprintf(format2, "[%d] %s", nproc, format);
va_start(arglist, format);
ret_value = vfprintf(stderr, format2, arglist);
+2
View File
@@ -6,6 +6,8 @@
#ifndef _H5PART_TESTFRAME_H_
#define _H5PART_TESTFRAME_H_
#include <string.h>
#ifdef PARALLEL_IO
#define OPEN(file,mode) \
H5PartOpenFileParallel(file,mode,MPI_COMM_WORLD)