From 997d4e374258c4d4bddc4754fa75155c4279f126 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 12 Feb 2003 07:39:55 -0500 Subject: [svn-r6394] Purpose: Bug fix. Description: Missed adding the dxpl to the 'flush' VFL callback in the stream driver, causing the C++ compiles to fail. Solution: Added the dxpl parameter. Platforms tested: FreeBSD 4.7 (sleipnir) w/CC=g++ --- src/H5FDstream.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/H5FDstream.c b/src/H5FDstream.c index e60c7a7..680d969 100644 --- a/src/H5FDstream.c +++ b/src/H5FDstream.c @@ -153,7 +153,7 @@ static const H5FD_stream_fapl_t default_fapl = static void *H5FD_stream_fapl_get (H5FD_t *_stream); static H5FD_t *H5FD_stream_open (const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr); -static herr_t H5FD_stream_flush (H5FD_t *_stream, unsigned closing); +static herr_t H5FD_stream_flush (H5FD_t *_stream, hid_t dxpl_id, unsigned closing); static herr_t H5FD_stream_close (H5FD_t *_stream); static herr_t H5FD_stream_query(const H5FD_t *_f1, unsigned long *flags); static haddr_t H5FD_stream_get_eoa (H5FD_t *_stream); @@ -693,7 +693,7 @@ done: *------------------------------------------------------------------------- */ static herr_t -H5FD_stream_flush (H5FD_t *_stream, unsigned UNUSED closing) +H5FD_stream_flush (H5FD_t *_stream, hid_t dxpl_id, unsigned UNUSED closing) { H5FD_stream_t *stream = (H5FD_stream_t *) _stream; size_t size; @@ -772,10 +772,6 @@ H5FD_stream_close (H5FD_t *_stream) FUNC_ENTER_NOAPI(H5FD_stream_close, FAIL); - /* Flush */ - if (H5FD_stream_flush (_stream,TRUE) != SUCCEED) - HGOTO_ERROR (H5E_FILE, H5E_CANTFLUSH, FAIL, "unable to flush file"); - /* Release resources */ if (! H5FD_STREAM_ERROR_CHECK (stream->socket) && stream->internal_socket) H5FD_STREAM_CLOSE_SOCKET (stream->socket); -- cgit v0.12