Commit 59ec2fc8 authored by Niels Möller's avatar Niels Möller
Browse files

Use uint8_t for hash_file buffer.

parent 1a1f8a0c
2016-08-16 Niels Möller <nisse@lysator.liu.se> 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.c (sexp_iterator_check_type, sexp_iterator_check_types)
(sexp_iterator_assoc): Use const char * for caller's expression (sexp_iterator_assoc): Use const char * for caller's expression
types. Updated all callers. types. Updated all callers.
......
...@@ -189,7 +189,7 @@ hash_file(const struct nettle_hash *hash, void *ctx, FILE *f) ...@@ -189,7 +189,7 @@ hash_file(const struct nettle_hash *hash, void *ctx, FILE *f)
{ {
for (;;) for (;;)
{ {
char buffer[BUFSIZE]; uint8_t buffer[BUFSIZE];
size_t res = fread(buffer, 1, sizeof(buffer), f); size_t res = fread(buffer, 1, sizeof(buffer), f);
if (ferror(f)) if (ferror(f))
return 0; return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment