Cosmetics.
authorFrancois Fleuret <francois@fleuret.org>
Sun, 18 Apr 2010 08:34:38 +0000 (10:34 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Sun, 18 Apr 2010 08:34:38 +0000 (10:34 +0200)
breezed.c

index e8043df..498df00 100644 (file)
--- 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++;
   }