diff Meerwald/cmp_xie2_sig.c @ 8:f83ef905a63d

fixing many warnings increase capacity for coordinates in bruyn fix some uninit. variables
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 22 Apr 2008 13:36:05 +0200
parents acb6967ee76d
children ad1d224896c5
line wrap: on
line diff
--- a/Meerwald/cmp_xie2_sig.c	Wed Apr 16 15:55:52 2008 +0200
+++ b/Meerwald/cmp_xie2_sig.c	Tue Apr 22 13:36:05 2008 +0200
@@ -33,8 +33,6 @@
   int level = 0;
   int quant = 0;
   double alpha = 0.0;
-  double intensity = 0.0;
-  int subband = 0;
   char filter_name[MAXPATHLEN] = "";
 
   int seed;
@@ -83,14 +81,15 @@
     exit(1);
   }
 
-  if (argc == 1 && *argv[0] != '-')
+  if (argc == 1 && *argv[0] != '-') {
     if ((in = fopen(argv[0], "r")) == NULL) {
       fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]);
       exit(1);
     }
     else
       strcpy(input_name, argv[0]);
-
+  }
+  
   if (sig) {
     fgets(line, sizeof(line), sig);
     if (strspn(line, "XE2SG") >= 5) {
@@ -111,7 +110,7 @@
       fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name);
       exit(1);
     }
-    close(sig);
+    fclose(sig);
   }
   else {
     fprintf(stderr, "%s: original signature file not specified, use -s file option\n", progname);

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