From: Niels Möller Date: Tue, 16 Aug 2016 05:37:50 +0000 (+0200) Subject: Use uint8_t for hash_file buffer. X-Git-Tag: nettle_3.3_release_20161001~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59ec2fc80a713588207ad98a387683cda48d65a0;p=thirdparty%2Fnettle.git Use uint8_t for hash_file buffer. --- diff --git a/ChangeLog b/ChangeLog index 97b90f9a..51fd73a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2016-08-16 Niels Möller + * 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;