some little fixes for
nettle-hash.c:53:2: warning: ISO C does not allow extra ';' outside of a function [-pedantic]
testutils.c:1072:2: warning: ISO C does not allow extra ';' outside of a function [-pedantic]
des-compat-test.c:748:14: warning: old-style function definition [-Wold-style-definition]
des-compat-test.c:755:17: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
Regards, Tim
diff --cc testsuite/des-compat-test.c
index 257c343,257c343..4021ee8
--- a/testsuite/des-compat-test.c
+++ b/testsuite/des-compat-test.c
@@@ -745,14 -745,14 +745,13 @@@ plain[8+4], plain[8+5], plain[8+6], pla
return(0);
}
--static char *pt(p)
--const unsigned char *p;
++static char *pt(const unsigned char *p)
{
static char bufs[10][20];
static int bnum=0;
char *ret;
int i;
-- static char *f="0123456789ABCDEF";
++ static const char *f="0123456789ABCDEF";
ret= &(bufs[bnum++][0]);
bnum%=10;
diff --cc testsuite/testutils.c
index d77bb7e,d77bb7e..1b0fd88
--- a/testsuite/testutils.c
+++ b/testsuite/testutils.c
@@@ -1069,7 -1069,7 +1069,7 @@@ test_dsa_key(struct dsa_public_key *pub
mpz_powm(t, pub->g, key->x, pub->p);
ASSERT(0 == mpz_cmp(t, pub->y));
--};
++}
#endif /* WITH_HOGWEED */
diff --cc tools/nettle-hash.c
index 842f9ff,5710216..bd03b18
--- a/tools/nettle-hash.c
+++ b/tools/nettle-hash.c
@@@ -50,9 -49,9 +50,9 @@@ list_algorithms (void
for (i = 0; (alg = nettle_hashes[i]); i++)
printf ("%10s %d (%d)\n",
alg->name, alg->digest_size, alg->block_size);
--};
++}
-static const struct nettle_hash *
+static const struct nettle_hash * NONNULL(1)
find_algorithm (const char *name)
{
const struct nettle_hash *alg;