Get rid of some unnecessary casts and add a necessary one.
[oweals/openssl.git] / apps / genrsa.c
index 30f1618f18f0d1bb20342b77cd3f65b2452784ab..1cba9f59256c396fc52e14a741443d16e6dafbd3 100644 (file)
@@ -56,6 +56,7 @@
  * [including the GNU Public Licence.]
  */
 
+#ifndef NO_RSA
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
 #undef PROG
 #define PROG genrsa_main
 
-#ifndef NOPROTO
 static void MS_CALLBACK genrsa_cb(int p, int n, char *arg);
 static long gr_load_rand(char *names);
-#else
-static void MS_CALLBACK genrsa_cb();
-static long gr_load_rand();
-#endif
-
 int MAIN(int argc, char **argv)
        {
        int ret=1;
@@ -268,5 +263,4 @@ static long gr_load_rand(char *name)
                }
        return(tot);
        }
-
-
+#endif