Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
59ec2fc8
Commit
59ec2fc8
authored
Aug 16, 2016
by
Niels Möller
Browse files
Use uint8_t for hash_file buffer.
parent
1a1f8a0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
59ec2fc8
2016-08-16 Niels Möller <nisse@lysator.liu.se>
* examples/io.c (hash_file): Use uint8_t for buffer.
* sexp.c (sexp_iterator_check_type, sexp_iterator_check_types)
(sexp_iterator_assoc): Use const char * for caller's expression
types. Updated all callers.
...
...
examples/io.c
View file @
59ec2fc8
...
...
@@ -189,7 +189,7 @@ hash_file(const struct nettle_hash *hash, void *ctx, FILE *f)
{
for
(;;)
{
char
buffer
[
BUFSIZE
];
uint8_t
buffer
[
BUFSIZE
];
size_t
res
=
fread
(
buffer
,
1
,
sizeof
(
buffer
),
f
);
if
(
ferror
(
f
))
return
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