comparison Meerwald/gen_xie2_sig.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 4987db85cfae
comparison
equal deleted inserted replaced
14:1906e659edd0 15:ad1d224896c5
153 if (f == 0) 153 if (f == 0)
154 fscanf(sig, "%d\n", &f); 154 fscanf(sig, "%d\n", &f);
155 else 155 else
156 fscanf(sig, "%*d\n"); 156 fscanf(sig, "%*d\n");
157 if (!strcmp(F, "")) 157 if (!strcmp(F, ""))
158 fscanf(sig, "%[^\n\r]\n", &F); 158 fscanf(sig, "%[^\n\r]\n", F);
159 else 159 else
160 fscanf(sig, "%*[^\n\r]\n"); 160 fscanf(sig, "%*[^\n\r]\n");
161 if (q == 0) 161 if (q == 0)
162 fscanf(sig, "%d\n", &q); 162 fscanf(sig, "%d\n", &q);
163 else 163 else

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