Xinqi Bao's Git

Properly handle *snprintf() errors
[slstatus.git] / components / temperature.c
index 720f1b7..812ae77 100644 (file)
        #include <errno.h>
        #include <stdio.h>
        #include <string.h>
        #include <errno.h>
        #include <stdio.h>
        #include <string.h>
-       #include <sys/sysctl.h>
-       #include <sys/time.h>
+       #include <sys/time.h> /* before <sys/sensors.h> for struct timeval */
        #include <sys/sensors.h>
        #include <sys/sensors.h>
+       #include <sys/sysctl.h>
 
        const char *
 
        const char *
-       temp(const char *null)
+       temp(const char *unused)
        {
                int mib[5];
                size_t size;
        {
                int mib[5];
                size_t size;