Convert the rest of the codebase to C89.

Update build system to enforce -std=c89 -pedantic.
This commit is contained in:
Gregory Maxwell
2015-01-25 17:32:08 +00:00
parent bf2e1ac7cd
commit f735446c4d
15 changed files with 279 additions and 196 deletions

View File

@@ -1741,7 +1741,7 @@ int main(int argc, char **argv) {
/* find random seed */
if (argc > 2) {
seed = strtoull(argv[2], NULL, 0);
sscanf(argv[2], "%" I64uFORMAT, (unsigned long long*)&seed);
} else {
FILE *frand = fopen("/dev/urandom", "r");
if (!frand || !fread(&seed, sizeof(seed), 1, frand)) {
@@ -1752,7 +1752,7 @@ int main(int argc, char **argv) {
secp256k1_rand_seed(seed);
printf("test count = %i\n", count);
printf("random seed = %llu\n", (unsigned long long)seed);
printf("random seed = %" I64uFORMAT "\n", (unsigned long long)seed);
/* initialize */
secp256k1_start(SECP256K1_START_SIGN | SECP256K1_START_VERIFY);