comparison Meerwald/cmp_wang_sig.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 bd669312f068
comparison
equal deleted inserted replaced
7:2b350281f8b0 8:f83ef905a63d
73 if (argc > 1) { 73 if (argc > 1) {
74 usage(); 74 usage();
75 exit(1); 75 exit(1);
76 } 76 }
77 77
78 if (argc == 1 && *argv[0] != '-') 78 if (argc == 1 && *argv[0] != '-') {
79 if ((in = fopen(argv[0], "r")) == NULL) { 79 if ((in = fopen(argv[0], "r")) == NULL) {
80 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); 80 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]);
81 exit(1); 81 exit(1);
82 } 82 }
83 else 83 else
84 strcpy(input_name, argv[0]); 84 strcpy(input_name, argv[0]);
85 85 }
86
86 if (!sig) { 87 if (!sig) {
87 fprintf(stderr, "%s: original signature file not specified, use -s file option\n", progname); 88 fprintf(stderr, "%s: original signature file not specified, use -s file option\n", progname);
88 exit(1); 89 exit(1);
89 } 90 }
90 91

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