while(s) {
s = next_word(token, s, buffer_size);
u = token;
- while(*u && *u != ':') u++;
+ while(*u && *u != ':') { u++; }
if(*u) {
*u = '\0';
temperature_thresholds[k] = atoi(token);
if(k > 0 &&
temperature_thresholds[k] < temperature_thresholds[k-1]) {
fprintf(stderr, "The temperature thresholds have to be increasing.\n");
- exit(0);
+ exit(EXIT_FAILURE);
}
k++;
}