chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
05d3a17
)
Remove duplicate includes
author
Karel Zak
<kzak@redhat.com>
Mon, 18 Nov 2013 13:48:16 +0000
(14:48 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 19 Nov 2013 01:28:55 +0000
(20:28 -0500)
12 files changed:
src/backlight/backlight.c
patch
|
blob
|
history
src/core/shutdown.c
patch
|
blob
|
history
src/journal/journalctl.c
patch
|
blob
|
history
src/libudev/libudev-device-private.c
patch
|
blob
|
history
src/login/logind-inhibit.c
patch
|
blob
|
history
src/nss-myhostname/netlink.c
patch
|
blob
|
history
src/shared/label.c
patch
|
blob
|
history
src/shared/util.c
patch
|
blob
|
history
src/sysctl/sysctl.c
patch
|
blob
|
history
src/systemctl/systemctl.c
patch
|
blob
|
history
src/udev/mtd_probe/probe_smartmedia.c
patch
|
blob
|
history
src/udev/v4l_id/v4l_id.c
patch
|
blob
|
history
diff --git
a/src/backlight/backlight.c
b/src/backlight/backlight.c
index 9ec29f79a40197af00b629f1cad902a2d9b8eeba..bf767038ee9f63f46b5b5ddb172b503441a3ca39 100644
(file)
--- 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 "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;
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 b5eb8b12de2752350cf0c164a81b98882f50fd3d..bcf2eecf33ad0bd74d4e402907c61b58856f62ec 100644
(file)
--- 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/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>
#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 a5091042d4b48899fd19d055258bf211f3d9a1c7..c44be745b861568f68a00391ec7ac19f602d4cdd 100644
(file)
--- a/
src/journal/journalctl.c
+++ b/
src/journal/journalctl.c
@@
-48,7
+48,6
@@
#include "fileio.h"
#include "build.h"
#include "pager.h"
#include "fileio.h"
#include "build.h"
#include "pager.h"
-#include "logs-show.h"
#include "strv.h"
#include "journal-internal.h"
#include "journal-def.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 cba08d2f65ba02397d75158a78c5f866133e1dcd..cb4947ff3b358e90db1c34571ba0fdf69692a919 100644
(file)
--- 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 <stdbool.h>
#include <unistd.h>
#include <fcntl.h>
-#include <string.h>
#include <sys/stat.h>
#include "libudev.h"
#include <sys/stat.h>
#include "libudev.h"
diff --git
a/src/login/logind-inhibit.c
b/src/login/logind-inhibit.c
index 3bc4642071dc09745f8560b7206c6634479bc88b..26cce8d7fcdd3defe57729421a6aa7de340a78e3 100644
(file)
--- 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 <fcntl.h>
#include <string.h>
-#include <errno.h>
#include <unistd.h>
#include "util.h"
#include <unistd.h>
#include "util.h"
diff --git
a/src/nss-myhostname/netlink.c
b/src/nss-myhostname/netlink.c
index 47a41f55e6b060a8c9894243a9d3955b0cb9771e..d61ecdfd40f5e0e2d7e5b40b8d50023a647a131b 100644
(file)
--- 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 <limits.h>
#include <arpa/inet.h>
#include <unistd.h>
-#include <inttypes.h>
#include <stdlib.h>
#include "ifconf.h"
#include <stdlib.h>
#include "ifconf.h"
diff --git
a/src/shared/label.c
b/src/shared/label.c
index 5c7cc1c906e1082e06d7ac58a170ec685d82dc92..4a26ba9c5d1393a5a14d6981980473a6e2f5db9e 100644
(file)
--- a/
src/shared/label.c
+++ b/
src/shared/label.c
@@
-20,7
+20,6
@@
***/
#include <errno.h>
***/
#include <errno.h>
-#include <sys/stat.h>
#include <unistd.h>
#include <malloc.h>
#include <sys/socket.h>
#include <unistd.h>
#include <malloc.h>
#include <sys/socket.h>
diff --git
a/src/shared/util.c
b/src/shared/util.c
index b77d010d2d5801a60da5e1492c5acadf6b2ae00b..deb74c4655be8678fc2ad8b807df78f8ea50ccde 100644
(file)
--- 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 <stdarg.h>
#include <sys/inotify.h>
#include <sys/poll.h>
-#include <libgen.h>
#include <ctype.h>
#include <sys/prctl.h>
#include <sys/utsname.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 67c787225c3180861b8f7389b978dc825e86ec19..449e0cadd530bb26e507c3ad9b947a3cc8e2755f 100644
(file)
--- a/
src/sysctl/sysctl.c
+++ b/
src/sysctl/sysctl.c
@@
-30,7
+30,6
@@
#include "log.h"
#include "strv.h"
#include "util.h"
#include "log.h"
#include "strv.h"
#include "util.h"
-#include "strv.h"
#include "hashmap.h"
#include "path-util.h"
#include "conf-files.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 2362f43a2fcfb08c9cbef1bc90bbd69a1d036636..2e1863675f7f3ce3b58ebdb17bd5a0f02f3885bc 100644
(file)
--- 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 "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"
#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 feadb5076c6d7d3d130a3e03ee202d194c77ff46..a007ccee2fca0e5be7e090acd22b99c5c588d823 100644
(file)
--- 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 <fcntl.h>
#include <unistd.h>
#include <stdint.h>
-#include <stdlib.h>
#include "mtd_probe.h"
static const uint8_t cis_signature[] = {
#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 8dcb645ed9f1b7d3c3b81334a2e4c943f7a761e2..d5463b27e51ffe861fa7c385ee99b75dd6b8715f 100644
(file)
--- 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 <string.h>
#include <ctype.h>
#include <stdlib.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
#include <unistd.h>
-#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <sys/types.h>
#include <fcntl.h>
#include <getopt.h>
#include <sys/types.h>