mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[svn-r3225] ./hdf5/src/H5FDstream.c
2000-12-29 08:59:03 Robb Matzke <matzke@llnl.gov> * H5FD_stream_query: The `flags' argument is advertised to be output only. Therefore I added code to zero its value before the feature bits are assigned.
This commit is contained in:
parent
12dd74b53f
commit
0ac6ad10bd
@ -180,7 +180,7 @@ static const H5FD_class_t H5FD_stream_g =
|
||||
H5FD_stream_open, /* open */
|
||||
H5FD_stream_close, /* close */
|
||||
NULL, /* cmp */
|
||||
H5FD_stream_query, /*query */
|
||||
H5FD_stream_query, /* query */
|
||||
NULL, /* alloc */
|
||||
NULL, /* free */
|
||||
H5FD_stream_get_eoa, /* get_eoa */
|
||||
@ -902,16 +902,17 @@ static herr_t H5FD_stream_close (H5FD_t *_stream)
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static herr_t H5FD_stream_query (const H5FD_t UNUSED *_f,
|
||||
unsigned long *flags /* out */)
|
||||
static herr_t
|
||||
H5FD_stream_query(const H5FD_t UNUSED *_f,
|
||||
unsigned long *flags/*out*/)
|
||||
{
|
||||
FUNC_ENTER (H5FD_stream_query, SUCCEED);
|
||||
|
||||
/* Set the VFL feature flags that this driver supports */
|
||||
if (flags)
|
||||
{
|
||||
/* OK to perform data sieving for faster raw data reads & writes */
|
||||
*flags |= H5FD_FEAT_DATA_SIEVE;
|
||||
if (flags) {
|
||||
*flags = 0;
|
||||
/* OK to perform data sieving for faster raw data reads & writes */
|
||||
*flags |= H5FD_FEAT_DATA_SIEVE;
|
||||
}
|
||||
|
||||
FUNC_LEAVE (SUCCEED);
|
||||
|
Loading…
x
Reference in New Issue
Block a user