gcrypt: Fix gcc warning on Ubuntu Lucid.
authorAndre Noll <maan@systemlinux.org>
Mon, 27 Jan 2014 13:35:55 +0000 (14:35 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 22 Feb 2014 15:52:06 +0000 (16:52 +0100)
For some reason the gcc-4.4.3 that ships with Ubuntu Lucid started
to complain recently:

gcrypt.c: In function ‘mgf1’:
gcrypt.c:101: warning: ISO C90 forbids mixed declarations and code

It turned out that a double semicolon is responsible for the
warning. This patch removes the duplicate.

gcrypt.c

index 0183dc389675cb3ed5b32e70d5b6d99821eff586..1cfd10964c20e9ab30d77cff432405106cdb6836 100644 (file)
--- a/gcrypt.c
+++ b/gcrypt.c
@@ -97,7 +97,7 @@ static void mgf1(unsigned char *seed, size_t seed_len, unsigned result_len,
 {
        gcry_error_t gret;
        gcry_md_hd_t handle;
-       size_t n;;
+       size_t n;
        unsigned char *md;
        unsigned char octet_string[4], *rp = result, *end = rp + result_len;