added -Wall and fixed compilation error
[psensor.git] / src / lib / lmsensor.c
index df788f6..3af7c78 100644 (file)
@@ -99,7 +99,7 @@ void lmsensor_psensor_list_update(struct psensor **sensors)
        }
 }
 
-struct psensor *
+static struct psensor *
 lmsensor_psensor_create(const sensors_chip_name *chip,
                        const sensors_feature *feature,
                        int values_max_length)
@@ -172,7 +172,7 @@ struct psensor **lmsensor_psensor_list_add(struct psensor **sensors,
        int i;
 
        if (!init_done)
-               return ;
+               return NULL;
 
        result = sensors;
        while ((chip = sensors_get_detected_chips(NULL, &chip_nr))) {