Revision e1e0ca70 tests/rotozoom.c

View differences:

tests/rotozoom.c
241 241
    int radian;
242 242
    char line[3 * W];
243 243

  
244
    FILE *fichier;
244
    FILE *input_file;
245 245

  
246
    fichier = fopen(filename, "rb");
247
    if (!fichier) {
246
    input_file = fopen(filename, "rb");
247
    if (!input_file) {
248 248
        perror(filename);
249 249
        return 1;
250 250
    }
251 251

  
252
    if (fread(line, 1, 15, fichier) != 15)
252
    if (fread(line, 1, 15, input_file) != 15)
253 253
        return 1;
254 254
    for (i = 0; i < H; i++) {
255
        if (fread(line, 1, 3 * W, fichier) != 3 * W)
255
        if (fread(line, 1, 3 * W, input_file) != 3 * W)
256 256
            return 1;
257 257
        for (j = 0; j < W; j++) {
258 258
            tab_r[W * i + j] = line[3 * j    ];
......
260 260
            tab_b[W * i + j] = line[3 * j + 2];
261 261
        }
262 262
    }
263
    fclose(fichier);
263
    fclose(input_file);
264 264

  
265 265
    /* tables sin/cos */
266 266
    for (i = 0; i < 360; i++) {

Also available in: Unified diff