Remove NOPROTO definitions and error code comments.
[openssl.git] / apps / nseq.c
index e87c6c77a7dfffa6b68dd725b2b789ce26c33f64..5e74082cad469cd6d41a16d0b89110b8c0cd1fc2 100644 (file)
  */
 
 #include <stdio.h>
-#include "pem.h"
-#include "err.h"
+#include <string.h>
+#include <openssl/pem.h>
+#include <openssl/err.h>
 #include "apps.h"
 
 #undef PROG
 #define PROG nseq_main
 
-#ifdef NOPROTO
 static int dump_cert_text(BIO *out, X509 *x);
-#else
-static int dump_cert_text();
-#endif
 
-int MAIN(argc, argv)
-int argc;
-char **argv;
+int MAIN(int argc, char **argv)
 {
        char **args, *infile = NULL, *outfile = NULL;
        BIO *in = NULL, *out = NULL;
@@ -163,9 +158,7 @@ end:
        EXIT(ret);
 }
 
-static int dump_cert_text(out, x)
-BIO *out;
-X509 *x;
+static int dump_cert_text(BIO *out, X509 *x)
 {
         char buf[256];
         X509_NAME_oneline(X509_get_subject_name(x),buf,256);