comparison Meerwald/wm_kund2_e.c @ 15:ad1d224896c5

fix scanf() warning
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Mon, 30 Jun 2008 20:59:01 +0200
parents f83ef905a63d
children
comparison
equal deleted inserted replaced
14:1906e659edd0 15:ad1d224896c5
48 48
49 gray **image; 49 gray **image;
50 Image_tree dwts, p; 50 Image_tree dwts, p;
51 51
52 gray maxval; 52 gray maxval;
53 int rows, cols, colors, format; 53 int rows, cols, format;
54 54
55 progname = argv[0]; 55 progname = argv[0];
56 56
57 pgm_init(&argc, argv); 57 pgm_init(&argc, argv);
58 wm_init(); 58 wm_init();
158 if (filter == 0) 158 if (filter == 0)
159 fscanf(sig, "%d\n", &filter); 159 fscanf(sig, "%d\n", &filter);
160 else 160 else
161 fscanf(sig, "%*d\n"); 161 fscanf(sig, "%*d\n");
162 if (!strcmp(filter_name, "")) 162 if (!strcmp(filter_name, ""))
163 fscanf(sig, "%[^\n\r]\n", &filter_name); 163 fscanf(sig, "%[^\n\r]\n", filter_name);
164 else 164 else
165 fscanf(sig, "%*[^\n\r]\n"); 165 fscanf(sig, "%*[^\n\r]\n");
166 if (level == 0) 166 if (level == 0)
167 fscanf(sig, "%d\n", &level); 167 fscanf(sig, "%d\n", &level);
168 else 168 else

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