From: Francois Fleuret Date: Sun, 18 Apr 2010 08:34:38 +0000 (+0200) Subject: Cosmetics. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=00ff121c49ebc7d2b20137fc0165bf3e547ca331;p=breezed.git Cosmetics. --- diff --git a/breezed.c b/breezed.c index e8043df..498df00 100644 --- a/breezed.c +++ b/breezed.c @@ -178,7 +178,7 @@ void define_temperature_thresholds(char *definition) { 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); @@ -193,7 +193,7 @@ void define_temperature_thresholds(char *definition) { 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++; }