diff Meerwald/wm_koch_d.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 be303a3f5ea8
children 4987db85cfae
line wrap: on
line diff
--- a/Meerwald/wm_koch_d.c	Wed Apr 16 15:55:52 2008 +0200
+++ b/Meerwald/wm_koch_d.c	Tue Apr 22 13:36:05 2008 +0200
@@ -30,16 +30,12 @@
   char input_name[MAXPATHLEN] = "(stdin)";
   char output_name[MAXPATHLEN] = "(stdout)";
 
-  int i;
-  int j;
   int c;
   int n;
-  int x;
-  int y;
 
   int rows, cols, format;
   gray maxval;
-  int row, col;
+  int row;
 
   int seed;
   int verbose = 0;
@@ -105,14 +101,15 @@
     exit(1);
   }
 
-  if (argc == 1 && *argv[0] != '-')
+  if (argc == 1 && *argv[0] != '-') {
     if ((in = fopen(argv[0], "rb")) == NULL) {
       fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]);
       exit(1);
     }
     else
       strcpy(input_name, argv[0]);
-
+  }
+  
   if (sig) {
     char line[128];
     fgets(line, sizeof(line), sig);
@@ -184,7 +181,6 @@
     int yb;
     int c1, c2;
     double v1, v2;
-    double q = 1.0;
 
     do {
       xb = random() % (cols / NJPEG);

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