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
c9c431ae
Commit
c9c431ae
authored
Sep 18, 2015
by
Uwe Schulzweida
Browse files
tests: replace xcalloc() by Calloc()
parent
389aafbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/stream_cksum.c
View file @
c9c431ae
...
...
@@ -49,7 +49,7 @@ cksum_stream(const char *fname, size_t *table_len)
nvars
=
-
1
;
break
;
}
checksum_state
=
(
uint32_t
*
)
xc
alloc
((
size_t
)
nvars
,
sizeof
(
checksum_state
[
0
]));
checksum_state
=
(
uint32_t
*
)
C
alloc
((
size_t
)
nvars
,
sizeof
(
checksum_state
[
0
]));
varSize
=
(
struct
var_size_t
*
)
malloc
((
size_t
)
nvars
*
sizeof
(
varSize
[
0
]));
for
(
i
=
0
;
i
<
nvars
;
++
i
)
...
...
Write
Preview
Supports
Markdown
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