/alps/ufodecode

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ufodecode

« back to all changes in this revision

Viewing changes to test/ipedec.c

  • Committer: Matthias Vogelgesang
  • Date: 2012-07-18 14:46:11 UTC
  • Revision ID: matthias.vogelgesang@kit.edu-20120718144611-ruplgj4i2t2c3ch1
Issue `no input files` also with options set

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
    int verbose = 0;
209
209
    int rows = 1088;
210
210
 
211
 
    if (argc == 1) {
212
 
        printf("ipedec: no input files\n");
213
 
        return 0;
214
 
    }
215
 
 
216
211
    while ((getopt_ret = getopt_long(argc, (char *const *) argv, "r:cvh", long_options, &index)) != -1) {
217
212
        switch (getopt_ret) {
218
213
            case 'r': 
232
227
        } 
233
228
    }
234
229
 
 
230
    if (optind == argc) {
 
231
        printf("ipedec: no input files\n");
 
232
        return 1;
 
233
    }
 
234
 
235
235
    while (optind < argc)
236
236
        process_file(argv[optind++], rows, clear_frame, verbose);
237
237