diff Meerwald/cmp_wang_sig.c @ 20:bd669312f068

suppress warnings, fix link errors
author Peter Meerwald-Stadler <pmeerw@pmeerw.net>
date Sat, 28 Jan 2023 23:54:58 +0100
parents f83ef905a63d
children
line wrap: on
line diff
--- a/Meerwald/cmp_wang_sig.c	Tue Sep 21 13:40:51 2010 +0200
+++ b/Meerwald/cmp_wang_sig.c	Sat Jan 28 23:54:58 2023 +0100
@@ -3,8 +3,7 @@
 char *progname;
 
 void usage(void) {
-  fprintf(stderr, "usage: %s [-h] [-C] [-o file] [-v n] -s file file\n\n", progname);
-  fprintf(stderr, "\t-C\t\toutput correlation only\n");
+  fprintf(stderr, "usage: %s [-h] [-o file] [-v n] -s file file\n\n", progname);
   fprintf(stderr, "\t-h\t\tprint usage\n");
   fprintf(stderr, "\t-o file\t\toutput file\n");
   fprintf(stderr, "\t-v n\t\tverbosity level\n");
@@ -30,19 +29,15 @@
   char line[32];
 
   int verbose = 0;
-  int correlation_only = 0;
 
   progname = argv[0];
 
-  while ((c = getopt(argc, argv, "h?Co:s:v:")) != EOF) {
+  while ((c = getopt(argc, argv, "h?o:s:v:")) != EOF) {
     switch (c) {
       case 'h':
       case '?':
         usage();
         break;
-      case 'C':
-        correlation_only = 1;
-        break;
       case 'o':
         if ((out = fopen(optarg, "w")) == NULL) {
           fprintf(stderr, "%s: unable to open output file %s\n", progname, optarg);
@@ -83,7 +78,7 @@
     else
       strcpy(input_name, argv[0]);
   }
-    
+
   if (!sig) {
     fprintf(stderr, "%s: original signature file not specified, use -s file option\n", progname);
     exit(1);

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.