- Remove <errno.h> because related functions are in util.c now
- Remove corresponding <string.h> if not used otherwise
14 files changed:
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <stdio.h>
#include <string.h>
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <stdio.h>
#include <string.h>
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <stdio.h>
-#include <string.h>
#include <sys/statvfs.h>
#include "../util.h"
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <stdio.h>
-#include <string.h>
#include <unistd.h>
#include "../util.h"
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <ifaddrs.h>
#include <netdb.h>
#include <stdio.h>
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <sys/utsname.h>
#include <stdio.h>
-#include <string.h>
#include "../util.h"
/* See LICENSE file for copyright and license details. */
#include <dirent.h>
-#include <errno.h>
#include <stdio.h>
#include <string.h>
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <stdio.h>
#include <string.h>
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
return bprintf("%d", temp / 1000);
}
#elif defined(__OpenBSD__)
- #include <errno.h>
#include <stdio.h>
- #include <string.h>
#include <sys/time.h> /* before <sys/sensors.h> for struct timeval */
#include <sys/sensors.h>
#include <sys/sysctl.h>
return format(uptime);
}
#elif defined(__OpenBSD__)
- #include <errno.h>
- #include <string.h>
#include <sys/sysctl.h>
#include <sys/time.h>
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <pwd.h>
#include <stdio.h>
-#include <string.h>
#include <sys/types.h>
#include <unistd.h>
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
/* See LICENSE file for copyright and license details. */
-#include <errno.h>
#include <ifaddrs.h>
#include <stdio.h>
#include <string.h>