diff Meerwald/cmp_cox_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_cox_sig.c	Tue Sep 21 13:40:51 2010 +0200
+++ b/Meerwald/cmp_cox_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-s file\t\toriginal signature file\n");
@@ -28,21 +27,17 @@
   double sig_mean, sig_variance;
   double s1, s2, s3;
   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);
@@ -134,7 +129,7 @@
     fscanf(in, "%lf\n", &in_x);
 
     if (verbose >= 1) {
-      fprintf(stderr, "orig %f input %f\n", sig_x, in_x);  
+      fprintf(stderr, "orig %f input %f\n", sig_x, in_x);
     }
 
     s1 += sig_x * in_x;

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