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:
e5f774d
)
loopback-setup: no need to redefine LOOPBACK_IFINDEX, we already have it in missing.h
author
Lennart Poettering
<lennart@poettering.net>
Tue, 3 Feb 2015 12:48:15 +0000
(13:48 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 3 Feb 2015 12:48:15 +0000
(13:48 +0100)
src/core/loopback-setup.c
patch
|
blob
|
history
diff --git
a/src/core/loopback-setup.c
b/src/core/loopback-setup.c
index ca10e20a344cdb85980c475d739eecc0bf37ee03..e5c0c0c1f5a7a227bcfa909645e855cd989324ff 100644
(file)
--- 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;