From: Niels Möller Date: Tue, 22 Apr 2003 19:54:09 +0000 (+0200) Subject: * sha-example.c (display_hex): Simplified by using printf better. X-Git-Tag: nettle_1.8_release_20040110~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f3ff09fd8cbc67310ff6ceb2e0e58a52548dc59;p=thirdparty%2Fnettle.git * sha-example.c (display_hex): Simplified by using printf better. Rev: src/nettle/ChangeLog:1.191 Rev: src/nettle/sha-example.c:1.2 --- diff --git a/ChangeLog b/ChangeLog index 6b939b6e..de9b4a8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,12 @@ 2003-04-22 Niels Möller + * sha-example.c (display_hex): Simplified by using printf better. + * nettle.texinfo (Example): Use @verbatiminclude to include the example program. * sha-example.c: Example program, for inclusion in the manual. + Fixed bugs reported by Mark Arking. 2003-04-14 Niels Möller diff --git a/sha-example.c b/sha-example.c index a4818460..8f434968 100644 --- a/sha-example.c +++ b/sha-example.c @@ -8,14 +8,11 @@ static void display_hex(unsigned length, uint8_t *data) { - static const char digits[16] = "0123456789abcdef"; unsigned i; for (i = 0; i