Commit b5931524 authored by Tim Ruehsen's avatar Tim Ruehsen Committed by Niels Möller
Browse files

Fix some warnings in the testsuite.

parent fad85c4e
2012-12-20 Niels Möller <nisse@lysator.liu.se>
From Tim Rühsen:
* testsuite/des-compat-test.c (pt): Use proper prototype, use
const.
* testsuite/testutils.c (test_dsa_key): Deleted spurious
semicolon.
2012-12-15 Niels Möller <nisse@lysator.liu.se> 2012-12-15 Niels Möller <nisse@lysator.liu.se>
From Alon Bar-Lev: From Alon Bar-Lev:
......
...@@ -744,14 +744,13 @@ plain[8+4], plain[8+5], plain[8+6], plain[8+7]); ...@@ -744,14 +744,13 @@ plain[8+4], plain[8+5], plain[8+6], plain[8+7]);
ASSERT (err == 0); ASSERT (err == 0);
} }
static char *pt(p) static char *pt(const unsigned char *p)
const unsigned char *p;
{ {
static char bufs[10][20]; static char bufs[10][20];
static int bnum=0; static int bnum=0;
char *ret; char *ret;
int i; int i;
static char *f="0123456789ABCDEF"; static const char *f="0123456789ABCDEF";
ret= &(bufs[bnum++][0]); ret= &(bufs[bnum++][0]);
bnum%=10; bnum%=10;
......
...@@ -1084,7 +1084,7 @@ test_dsa_key(struct dsa_public_key *pub, ...@@ -1084,7 +1084,7 @@ test_dsa_key(struct dsa_public_key *pub,
ASSERT(0 == mpz_cmp(t, pub->y)); ASSERT(0 == mpz_cmp(t, pub->y));
mpz_clear(t); mpz_clear(t);
}; }
#endif /* WITH_HOGWEED */ #endif /* WITH_HOGWEED */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment