Remove /* foo.c */ comments
[openssl.git] / test / danetest.c
index 2c7c3c621a970c52f14ce7e453c5edf51395a41c..636f629617d872a02401ed1ec33e2dbe7fd8d2a1 100644 (file)
@@ -1,4 +1,3 @@
-/* danetest.c */
 /* ====================================================================
  * Copyright (c) 2015 The OpenSSL Project.  All rights reserved.
  *
@@ -88,7 +87,7 @@ static int restore_errno(void)
     return ret;
 }
 
-static void usage(void)
+static void test_usage(void)
 {
     fprintf(stderr, "usage: %s: danetest basedomain CAfile tlsafile\n", progname);
 }
@@ -465,11 +464,10 @@ int main(int argc, char *argv[])
 
     progname = argv[0];
     if (argc != 4) {
-        usage();
+        test_usage();
         EXIT(1);
     }
     basedomain = argv[1];
-    basedomain++; /* Force a use! */
     CAfile = argv[2];
     tlsafile = argv[3];
 
@@ -507,7 +505,7 @@ int main(int argc, char *argv[])
         goto end;
     }
 
-    if (test_tlsafile(ctx, argv[1], f, tlsafile) <= 0) {
+    if (test_tlsafile(ctx, basedomain, f, tlsafile) <= 0) {
         print_errors();
         goto end;
     }
@@ -527,7 +525,9 @@ end:
     ERR_free_strings();
     ERR_remove_thread_state(NULL);
     EVP_cleanup();
+#ifndef OPENSSL_NO_CRYPTO_MDEBUG
     CRYPTO_mem_leaks(bio_err);
+#endif
     BIO_free(bio_err);
     EXIT(ret);
 }