apps/dsaparam.c: make dsaparam -C output strict-warnings-friendly.
authorAndy Polyakov <appro@openssl.org>
Mon, 23 Jul 2018 20:26:30 +0000 (22:26 +0200)
committerAndy Polyakov <appro@openssl.org>
Wed, 25 Jul 2018 08:40:36 +0000 (10:40 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit d6b50b6e2ebc0c198877b5c56ae0a54cb9036088)

apps/dsaparam.c

index 46e3abcafd036f7fae2f8bf07d3b3a441d2c5174..20891cf3ddbc989064843bab07e8b8953465ec59 100644 (file)
@@ -226,7 +226,7 @@ int dsaparam_main(int argc, char **argv)
 
         data = app_malloc(len + 20, "BN space");
 
-        BIO_printf(bio_out, "DSA *get_dsa%d()\n{\n", bits_p);
+        BIO_printf(bio_out, "static DSA *get_dsa%d(void)\n{\n", bits_p);
         print_bignum_var(bio_out, p, "dsap", bits_p, data);
         print_bignum_var(bio_out, q, "dsaq", bits_p, data);
         print_bignum_var(bio_out, g, "dsag", bits_p, data);