From: Lennart Poettering Date: Tue, 3 Feb 2015 12:48:15 +0000 (+0100) Subject: loopback-setup: no need to redefine LOOPBACK_IFINDEX, we already have it in missing.h X-Git-Tag: v219~170 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=9ca903cceb9b0c9148e3050e800b3f422ab6aab8;p=elogind.git loopback-setup: no need to redefine LOOPBACK_IFINDEX, we already have it in missing.h --- diff --git a/src/core/loopback-setup.c b/src/core/loopback-setup.c index ca10e20a3..e5c0c0c1f 100644 --- a/src/core/loopback-setup.c +++ b/src/core/loopback-setup.c @@ -27,15 +27,13 @@ #include #include +#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;