Skip to content
GitLab
Menu
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
9d6c4622
Commit
9d6c4622
authored
Feb 10, 2019
by
Uwe Schulzweida
Browse files
streamScanInitRecords(): return nrecs.
parent
b9b9a1b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_scan.c
View file @
9d6c4622
...
...
@@ -40,13 +40,15 @@ int streamScanInitRecords2(stream_t *streamptr)
int
streamScanInitRecords
(
stream_t
*
streamptr
,
int
tsID
)
{
const
nrecs
=
streamptr
->
tsteps
[
1
].
nrecs
;
const
int
nrecs
=
streamptr
->
tsteps
[
1
].
nrecs
;
streamptr
->
tsteps
[
tsID
].
nrecs
=
nrecs
;
streamptr
->
tsteps
[
tsID
].
recIDs
=
(
int
*
)
Malloc
((
size_t
)
nrecs
*
sizeof
(
int
));
for
(
int
recID
=
0
;
recID
<
nrecs
;
++
recID
)
streamptr
->
tsteps
[
tsID
].
recIDs
[
recID
]
=
streamptr
->
tsteps
[
1
].
recIDs
[
recID
];
return
nrecs
;
}
...
...
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