comparison Meerwald/gen_frid2_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
comparison
equal deleted inserted replaced
7:2b350281f8b0 8:f83ef905a63d
92 if (argc > 1) { 92 if (argc > 1) {
93 usage(); 93 usage();
94 exit(1); 94 exit(1);
95 } 95 }
96 96
97 if (argc == 1 && *argv[0] != '-') 97 if (argc == 1 && *argv[0] != '-') {
98 if ((in = fopen(argv[0], "rb")) == NULL) { 98 if ((in = fopen(argv[0], "rb")) == NULL) {
99 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); 99 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]);
100 exit(1); 100 exit(1);
101 }
102 else
103 strcpy(input_name, argv[0]);
101 } 104 }
102 else
103 strcpy(input_name, argv[0]);
104 105
105 if (!s) 106 if (!s)
106 s = time(NULL) * getpid(); 107 s = time(NULL) * getpid();
107 srandom(s); 108 srandom(s);
108 109

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