Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
191ec2e3
Commit
191ec2e3
authored
Sep 08, 2015
by
Thomas Jahns
🤸
Browse files
Move declaration to initialization.
parent
78fc610c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/cdi.inc
View file @
191ec2e3
...
...
@@ -4,7 +4,7 @@
!
!
Author
:
!
-------
!
Uwe
Schulzweida
,
MPI
-
MET
,
Hamburg
,
August
2015
!
Uwe
Schulzweida
,
MPI
-
MET
,
Hamburg
,
September
2015
!
INTEGER
CDI_MAX_NAME
...
...
src/cdipio.inc
View file @
191ec2e3
...
...
@@ -4,7 +4,7 @@
!
!
Author
:
!
-------
!
Uwe
Schulzweida
,
MPI
-
MET
,
Hamburg
,
August
2015
!
Uwe
Schulzweida
,
MPI
-
MET
,
Hamburg
,
September
2015
!
!
...
...
src/stream.c
View file @
191ec2e3
...
...
@@ -2364,7 +2364,7 @@ struct streamAssoc
streamUnpack
(
char
*
unpackBuffer
,
int
unpackBufferSize
,
int
*
unpackBufferPos
,
int
originNamespace
,
void
*
context
)
{
int
intBuffer
[
streamNint
]
,
streamID
;
int
intBuffer
[
streamNint
];
uint32_t
d
;
char
filename
[
CDI_MAX_NAME
];
...
...
@@ -2381,8 +2381,8 @@ streamUnpack(char * unpackBuffer, int unpackBufferSize,
serializeUnpack
(
unpackBuffer
,
unpackBufferSize
,
unpackBufferPos
,
&
d
,
1
,
DATATYPE_UINT32
,
context
);
xassert
(
d
==
cdiCheckSum
(
DATATYPE_TXT
,
intBuffer
[
2
],
filename
));
int
targetStreamID
=
namespaceAdaptKey
(
intBuffer
[
0
],
originNamespace
)
;
streamID
=
streamOpenID
(
filename
,
"w"
,
intBuffer
[
1
],
targetStreamID
);
int
targetStreamID
=
namespaceAdaptKey
(
intBuffer
[
0
],
originNamespace
)
,
streamID
=
streamOpenID
(
filename
,
"w"
,
intBuffer
[
1
],
targetStreamID
);
xassert
(
streamID
>=
0
&&
targetStreamID
==
streamID
);
streamDefByteorder
(
streamID
,
intBuffer
[
5
]);
streamDefCompType
(
streamID
,
intBuffer
[
6
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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