From 59ec2fc80a713588207ad98a387683cda48d65a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Tue, 16 Aug 2016 07:37:50 +0200 Subject: [PATCH] Use uint8_t for hash_file buffer. --- ChangeLog | 2 ++ examples/io.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 97b90f9a..51fd73a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 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. diff --git a/examples/io.c b/examples/io.c index 408869e1..50865f52 100644 --- a/examples/io.c +++ b/examples/io.c @@ -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; -- GitLab