Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
fc612d05
Commit
fc612d05
authored
Mar 24, 2008
by
Uwe Schulzweida
Browse files
mingw update
parent
e540dab7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cdf_int.c
View file @
fc612d05
...
...
@@ -31,7 +31,8 @@ void cdf_create(const char *path, int cmode, int *ncidp)
int
status
;
int
oldfill
;
struct
stat
filestat
;
size_t
initialsz
,
chunksizehint
;
size_t
initialsz
,
chunksizehint
=
0
;
#if defined (HAVE_STRUCT_STAT_ST_BLKSIZE)
char
basename
[
1024
];
char
*
pend
;
...
...
@@ -47,11 +48,9 @@ void cdf_create(const char *path, int cmode, int *ncidp)
if
(
stat
(
basename
,
&
filestat
)
!=
0
)
SysError
(
func
,
basename
);
#if defined (HAVE_STRUCT_STAT_ST_BLKSIZE)
chunksizehint
=
(
size_t
)
filestat
.
st_blksize
*
4
;
#else
chunksizehint
=
(
size_t
)
4096
*
4
;
#endif
if
(
chunksizehint
<
ChunkSizeMin
)
chunksizehint
=
ChunkSizeMin
;
initialsz
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment