summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-10-01 23:15:34 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-10-01 23:25:50 +0200
commitcf4acf84c6304d34108dadd5e87c9a19ca24dceb (patch)
treee06bf0d4a5f4d07269fcc02191648e5f897b4865
parent56a7dd42d3a680691f417bd8a4c46ea1b6283ff5 (diff)
Remove repeated includes
In pty.c there was both an include of our pty.h and the system installed pty.h. The latter contains only two functions openpty and forkpty. We use neither so I assume it was a typo and removed it. We still compile and pass all tests.
-rw-r--r--src/bus-proxyd/bus-proxyd.c1
-rw-r--r--src/bus-proxyd/test-bus-policy.c1
-rw-r--r--src/shared/locale-util.c1
-rw-r--r--src/shared/missing.h1
-rw-r--r--src/shared/pty.c1
-rw-r--r--src/sysv-generator/sysv-generator.c1
6 files changed, 0 insertions, 6 deletions
diff --git a/src/bus-proxyd/bus-proxyd.c b/src/bus-proxyd/bus-proxyd.c
index 6a0fc7edfb..5d58cd2af4 100644
--- a/src/bus-proxyd/bus-proxyd.c
+++ b/src/bus-proxyd/bus-proxyd.c
@@ -40,7 +40,6 @@
#include "bus-internal.h"
#include "bus-message.h"
#include "bus-util.h"
-#include "bus-internal.h"
#include "build.h"
#include "strv.h"
#include "def.h"
diff --git a/src/bus-proxyd/test-bus-policy.c b/src/bus-proxyd/test-bus-policy.c
index 7bcebef905..5267788b70 100644
--- a/src/bus-proxyd/test-bus-policy.c
+++ b/src/bus-proxyd/test-bus-policy.c
@@ -36,7 +36,6 @@
#include "bus-internal.h"
#include "bus-message.h"
#include "bus-util.h"
-#include "bus-internal.h"
#include "build.h"
#include "strv.h"
#include "def.h"
diff --git a/src/shared/locale-util.c b/src/shared/locale-util.c
index d5eaff3d9e..9addb05f09 100644
--- a/src/shared/locale-util.c
+++ b/src/shared/locale-util.c
@@ -25,7 +25,6 @@
#include "util.h"
#include "utf8.h"
#include "strv.h"
-#include "util.h"
#include "locale-util.h"
diff --git a/src/shared/missing.h b/src/shared/missing.h
index b441149945..031fe2d1ce 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -33,7 +33,6 @@
#include <linux/input.h>
#include <linux/if_link.h>
#include <linux/loop.h>
-#include <linux/if_link.h>
#ifdef HAVE_AUDIT
#include <libaudit.h>
diff --git a/src/shared/pty.c b/src/shared/pty.c
index 31123e5af2..adcb32d0be 100644
--- a/src/shared/pty.c
+++ b/src/shared/pty.c
@@ -46,7 +46,6 @@
#include <fcntl.h>
#include <limits.h>
#include <linux/ioctl.h>
-#include <pty.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
index 43bcaa862f..6e4cdd694e 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
@@ -31,7 +31,6 @@
#include "path-util.h"
#include "path-lookup.h"
#include "log.h"
-#include "strv.h"
#include "unit.h"
#include "unit-name.h"
#include "special.h"