mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Merge pull request #346 from Barhul/master
Avoiding conditional directives that break statements
This commit is contained in:
commit
6c3f665bc0
@ -401,12 +401,14 @@ ncio_ffio_global_test(const char *ControlString)
|
||||
static int
|
||||
ncio_ffio_sync(ncio *const nciop)
|
||||
{
|
||||
int test_flush;
|
||||
#ifdef __crayx1
|
||||
struct ffsw stat;
|
||||
if(ffflush(nciop->fd,&stat) < 0)
|
||||
test_flush = ffflush(nciop->fd,&stat) < 0;
|
||||
#else
|
||||
if(ffflush(nciop->fd) < 0)
|
||||
test_flush = ffflush(nciop->fd) < 0;
|
||||
#endif
|
||||
if(test_flush)
|
||||
return errno;
|
||||
return NC_NOERR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user