On 14/11/12 17:28, Ángel González wrote:
> I tried it, and it only needs a one line change to be compilable :)
Attaching the aforementioned patch.

>From 4f514bc94c909338dadf4ea0a0d050b6ea8cc3d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=81ngel=20Gonz=C3=A1lez?= <[email protected]>
Date: Wed, 14 Nov 2012 17:31:38 +0100
Subject: [PATCH] Fix compilation under gcc -std=c89

---
 src/ChangeLog | 4 ++++
 src/warc.c    | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index b7663ae..32a339d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2012-11-14  Ángel González  <[email protected]>
+	* warc.c (warc_sha1_stream_with_payload): Fix compilation under
+	gcc -std=c89
+
 2012-11-13  Giuseppe Scrivano  <[email protected]>
 
 	* retr.c (fd_read_body): Correctly check the return code from
diff --git a/src/warc.c b/src/warc.c
index de99bf7..437502c 100644
--- a/src/warc.c
+++ b/src/warc.c
@@ -532,7 +532,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);
-- 
1.8.0

Reply via email to