summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2013-11-18 14:48:16 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-11-18 20:28:55 -0500
commit4561be3a64534a911ee405ffb51950a624a0cd3f (patch)
tree4b7ea9da00183e3fdf0a458589e9f40fa5a5795e
parent05d3a176239c1dd67863c70a5b79d9bc14144ef6 (diff)
Remove duplicate includes
-rw-r--r--src/backlight/backlight.c1
-rw-r--r--src/core/shutdown.c1
-rw-r--r--src/journal/journalctl.c1
-rw-r--r--src/libudev/libudev-device-private.c1
-rw-r--r--src/login/logind-inhibit.c1
-rw-r--r--src/nss-myhostname/netlink.c1
-rw-r--r--src/shared/label.c1
-rw-r--r--src/shared/util.c1
-rw-r--r--src/sysctl/sysctl.c1
-rw-r--r--src/systemctl/systemctl.c1
-rw-r--r--src/udev/mtd_probe/probe_smartmedia.c1
-rw-r--r--src/udev/v4l_id/v4l_id.c4
12 files changed, 0 insertions, 15 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
index 9ec29f79a4..bf767038ee 100644
--- a/src/backlight/backlight.c
+++ b/src/backlight/backlight.c
@@ -24,7 +24,6 @@
#include "fileio.h"
#include "libudev.h"
#include "udev-util.h"
-#include "util.h"
static struct udev_device *find_pci_or_platform_parent(struct udev_device *device) {
struct udev_device *parent;
diff --git a/src/core/shutdown.c b/src/core/shutdown.c
index b5eb8b12de..bcf2eecf33 100644
--- a/src/core/shutdown.c
+++ b/src/core/shutdown.c
@@ -24,7 +24,6 @@
#include <sys/reboot.h>
#include <linux/reboot.h>
#include <sys/wait.h>
-#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <sys/syscall.h>
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index a5091042d4..c44be745b8 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -48,7 +48,6 @@
#include "fileio.h"
#include "build.h"
#include "pager.h"
-#include "logs-show.h"
#include "strv.h"
#include "journal-internal.h"
#include "journal-def.h"
diff --git a/src/libudev/libudev-device-private.c b/src/libudev/libudev-device-private.c
index cba08d2f65..cb4947ff3b 100644
--- a/src/libudev/libudev-device-private.c
+++ b/src/libudev/libudev-device-private.c
@@ -24,7 +24,6 @@
#include <stdbool.h>
#include <unistd.h>
#include <fcntl.h>
-#include <string.h>
#include <sys/stat.h>
#include "libudev.h"
diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c
index 3bc4642071..26cce8d7fc 100644
--- a/src/login/logind-inhibit.c
+++ b/src/login/logind-inhibit.c
@@ -22,7 +22,6 @@
#include <errno.h>
#include <fcntl.h>
#include <string.h>
-#include <errno.h>
#include <unistd.h>
#include "util.h"
diff --git a/src/nss-myhostname/netlink.c b/src/nss-myhostname/netlink.c
index 47a41f55e6..d61ecdfd40 100644
--- a/src/nss-myhostname/netlink.c
+++ b/src/nss-myhostname/netlink.c
@@ -31,7 +31,6 @@
#include <limits.h>
#include <arpa/inet.h>
#include <unistd.h>
-#include <inttypes.h>
#include <stdlib.h>
#include "ifconf.h"
diff --git a/src/shared/label.c b/src/shared/label.c
index 5c7cc1c906..4a26ba9c5d 100644
--- a/src/shared/label.c
+++ b/src/shared/label.c
@@ -20,7 +20,6 @@
***/
#include <errno.h>
-#include <sys/stat.h>
#include <unistd.h>
#include <malloc.h>
#include <sys/socket.h>
diff --git a/src/shared/util.c b/src/shared/util.c
index b77d010d2d..deb74c4655 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -41,7 +41,6 @@
#include <stdarg.h>
#include <sys/inotify.h>
#include <sys/poll.h>
-#include <libgen.h>
#include <ctype.h>
#include <sys/prctl.h>
#include <sys/utsname.h>
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
index 67c787225c..449e0cadd5 100644
--- a/src/sysctl/sysctl.c
+++ b/src/sysctl/sysctl.c
@@ -30,7 +30,6 @@
#include "log.h"
#include "strv.h"
#include "util.h"
-#include "strv.h"
#include "hashmap.h"
#include "path-util.h"
#include "conf-files.h"
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 2362f43a2f..2e1863675f 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -65,7 +65,6 @@
#include "spawn-polkit-agent.h"
#include "install.h"
#include "logs-show.h"
-#include "path-util.h"
#include "socket-util.h"
#include "fileio.h"
#include "bus-util.h"
diff --git a/src/udev/mtd_probe/probe_smartmedia.c b/src/udev/mtd_probe/probe_smartmedia.c
index feadb5076c..a007ccee2f 100644
--- a/src/udev/mtd_probe/probe_smartmedia.c
+++ b/src/udev/mtd_probe/probe_smartmedia.c
@@ -26,7 +26,6 @@
#include <fcntl.h>
#include <unistd.h>
#include <stdint.h>
-#include <stdlib.h>
#include "mtd_probe.h"
static const uint8_t cis_signature[] = {
diff --git a/src/udev/v4l_id/v4l_id.c b/src/udev/v4l_id/v4l_id.c
index 8dcb645ed9..d5463b27e5 100644
--- a/src/udev/v4l_id/v4l_id.c
+++ b/src/udev/v4l_id/v4l_id.c
@@ -18,11 +18,7 @@
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
-#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <sys/types.h>