Преглед изворни кода

Clean up header includes

- Remove <errno.h> because related functions are in util.c now
 - Remove corresponding <string.h> if not used otherwise
master
Aaron Marcher пре 6 година
родитељ
комит
b0401b13bb
14 измењених фајлова са 0 додато и 20 уклоњено
  1. +0
    -1
      components/battery.c
  2. +0
    -1
      components/cpu.c
  3. +0
    -2
      components/disk.c
  4. +0
    -2
      components/hostname.c
  5. +0
    -1
      components/ip.c
  6. +0
    -2
      components/kernel_release.c
  7. +0
    -1
      components/num_files.c
  8. +0
    -1
      components/run_command.c
  9. +0
    -1
      components/swap.c
  10. +0
    -2
      components/temperature.c
  11. +0
    -2
      components/uptime.c
  12. +0
    -2
      components/user.c
  13. +0
    -1
      components/volume.c
  14. +0
    -1
      components/wifi.c

+ 0
- 1
components/battery.c Прегледај датотеку

@@ -1,5 +1,4 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <stdio.h>
#include <string.h>



+ 0
- 1
components/cpu.c Прегледај датотеку

@@ -1,5 +1,4 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <stdio.h>
#include <string.h>



+ 0
- 2
components/disk.c Прегледај датотеку

@@ -1,7 +1,5 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/statvfs.h>

#include "../util.h"


+ 0
- 2
components/hostname.c Прегледај датотеку

@@ -1,7 +1,5 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>

#include "../util.h"


+ 0
- 1
components/ip.c Прегледај датотеку

@@ -1,5 +1,4 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <ifaddrs.h>
#include <netdb.h>
#include <stdio.h>


+ 0
- 2
components/kernel_release.c Прегледај датотеку

@@ -1,8 +1,6 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <sys/utsname.h>
#include <stdio.h>
#include <string.h>

#include "../util.h"



+ 0
- 1
components/num_files.c Прегледај датотеку

@@ -1,6 +1,5 @@
/* See LICENSE file for copyright and license details. */
#include <dirent.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>



+ 0
- 1
components/run_command.c Прегледај датотеку

@@ -1,5 +1,4 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <stdio.h>
#include <string.h>



+ 0
- 1
components/swap.c Прегледај датотеку

@@ -1,5 +1,4 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>


+ 0
- 2
components/temperature.c Прегледај датотеку

@@ -16,9 +16,7 @@
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>


+ 0
- 2
components/uptime.c Прегледај датотеку

@@ -29,8 +29,6 @@ format(int uptime)
return format(uptime);
}
#elif defined(__OpenBSD__)
#include <errno.h>
#include <string.h>
#include <sys/sysctl.h>
#include <sys/time.h>



+ 0
- 2
components/user.c Прегледај датотеку

@@ -1,8 +1,6 @@
/* 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>



+ 0
- 1
components/volume.c Прегледај датотеку

@@ -1,5 +1,4 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>


+ 0
- 1
components/wifi.c Прегледај датотеку

@@ -1,5 +1,4 @@
/* See LICENSE file for copyright and license details. */
#include <errno.h>
#include <ifaddrs.h>
#include <stdio.h>
#include <string.h>


Loading…
Откажи
Сачувај