summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-02-03 13:48:15 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-03 13:48:15 +0100
commit9ca903cceb9b0c9148e3050e800b3f422ab6aab8 (patch)
tree40886ed15cbe25bea1921d17fa351757d85ed367 /src/core
parente5f774df567952786e6ded933f2a34c430a33b23 (diff)
loopback-setup: no need to redefine LOOPBACK_IFINDEX, we already have it in missing.h
Diffstat (limited to 'src/core')
-rw-r--r--src/core/loopback-setup.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/loopback-setup.c b/src/core/loopback-setup.c
index ca10e20a34..e5c0c0c1f5 100644
--- a/src/core/loopback-setup.c
+++ b/src/core/loopback-setup.c
@@ -27,15 +27,13 @@
#include <stdlib.h>
#include <unistd.h>
+#include "sd-rtnl.h"
#include "util.h"
#include "macro.h"
-#include "loopback-setup.h"
#include "socket-util.h"
-#include "sd-rtnl.h"
#include "rtnl-util.h"
-
-/* this is hardcoded in the kernel, so don't look it up */
-#define LOOPBACK_IFINDEX 1
+#include "missing.h"
+#include "loopback-setup.h"
static int start_loopback(sd_rtnl *rtnl) {
_cleanup_rtnl_message_unref_ sd_rtnl_message *req = NULL;