comparison Meerwald/param_stuff.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 acb6967ee76d
children
comparison
equal deleted inserted replaced
7:2b350281f8b0 8:f83ef905a63d
33 exit(1); 33 exit(1);
34 } 34 }
35 35
36 alpha[alpha_len] = alpha_value; 36 alpha[alpha_len] = alpha_value;
37 alpha_len++; 37 alpha_len++;
38 } while (v = strtok(NULL, "\",; ")); 38 } while ((v = strtok(NULL, "\",; ")));
39 39
40 40
41 if( param_len_str && strlen(param_len_str) < sizeof(buf) 41 if( param_len_str && strlen(param_len_str) < sizeof(buf)
42 && strcmp(param_len_str, "") ) { 42 && strcmp(param_len_str, "") ) {
43 /* There was an parameter length environment variable. */ 43 /* There was an parameter length environment variable. */
57 57
58 param_len[param_len_len] = param_len_value; 58 param_len[param_len_len] = param_len_value;
59 param_len_len++; 59 param_len_len++;
60 param_len_sum += param_len_value; 60 param_len_sum += param_len_value;
61 61
62 } while (v = strtok(NULL, "\",; ")); 62 } while ((v = strtok(NULL, "\",; ")));
63 63
64 } else { 64 } else {
65 /* No length variable given. 65 /* No length variable given.
66 For backward compatability we use all parameters for 66 For backward compatability we use all parameters for
67 one filter and therefore for all levels. 67 one filter and therefore for all levels.

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