From: Ángel González Date: Wed, 14 Nov 2012 16:31:38 +0000 (+0100) Subject: Fix compilation under gcc -std=c89 X-Git-Tag: v1.15~79 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=2c1e0326a3921aa9841c395d7accb881b528f8e7 Fix compilation under gcc -std=c89 --- diff --git a/src/ChangeLog b/src/ChangeLog index 45b2a70a..7673778b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-11-14 Ángel González + * warc.c (warc_sha1_stream_with_payload): Fix compilation under + gcc -std=c89. + 2012-11-24 Gijs van Tulder * warc.c (warc_write_cdx_record): Use `number_to_string' to diff --git a/src/warc.c b/src/warc.c index 25a8517f..3203d4de 100644 --- a/src/warc.c +++ b/src/warc.c @@ -527,7 +527,7 @@ warc_sha1_stream_with_payload (FILE *stream, void *res_block, void *res_payload, static char * warc_base32_sha1_digest (char *sha1_digest) { - // length: "sha1:" + digest + "\0" + /* length: "sha1:" + digest + "\0" */ char *sha1_base32 = malloc (BASE32_LENGTH(SHA1_DIGEST_SIZE) + 1 + 5 ); base32_encode (sha1_digest, SHA1_DIGEST_SIZE, sha1_base32 + 5, BASE32_LENGTH(SHA1_DIGEST_SIZE) + 1);