]> granicus.if.org Git - strace/commitdiff
Move netlink_protocols definition from net.c to netlink.c
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 4 Jun 2017 17:03:44 +0000 (17:03 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 4 Jun 2017 17:03:44 +0000 (17:03 +0000)
The side effect of #include "xlat/netlink_protocols.h" is
NETLINK_* constants properly defined in that header file.
While net.c does not use these constants itself, netlink.c
is going to need them soon.

* net.c: Move inclusion of "xlat/netlink_protocols.h" ...
* netlink.c: ... here.

net.c
netlink.c

diff --git a/net.c b/net.c
index 01ab16b561a977c670e9e16ec3a27120838f087c..434acd8907bc0e89b89a20c5069f385230f0781f 100644 (file)
--- a/net.c
+++ b/net.c
@@ -81,7 +81,6 @@
 #include "xlat/socketlayers.h"
 
 #include "xlat/inet_protocols.h"
-#include "xlat/netlink_protocols.h"
 
 #ifdef HAVE_BLUETOOTH_BLUETOOTH_H
 # include <bluetooth/bluetooth.h>
index daaa745f5fd0eb78914957f0e6a5e1d3a44d5ca4..fd07caa3564d6cc6ba7057b188969e207adac0ea 100644 (file)
--- a/netlink.c
+++ b/netlink.c
@@ -31,6 +31,7 @@
 #include <sys/socket.h>
 #include <linux/netlink.h>
 #include "xlat/netlink_flags.h"
+#include "xlat/netlink_protocols.h"
 #include "xlat/netlink_types.h"
 
 #undef NLMSG_HDRLEN