]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
wifi-util: cleanup header inclusion
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Jan 2021 14:26:54 +0000 (23:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Jan 2021 16:11:50 +0000 (01:11 +0900)
src/shared/wifi-util.c
src/shared/wifi-util.h

index ae5cecc25d116c211c708c91f7da5637830d57e3..c83e817dbc96666ce96ea2f0b5d09ad29650f458 100644 (file)
@@ -1,12 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-#include <net/ethernet.h>
-#include <linux/nl80211.h>
-
-#include "sd-bus.h"
-
 #include "log.h"
-#include "netlink-util.h"
 #include "wifi-util.h"
 
 int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *iftype, char **ssid) {
index 01b0c3c63540b95bfbcdad1945e8bb411f8f0398..0ce41372e24c69ee2bc406d2ea64e7be0769a7fb 100644 (file)
@@ -3,8 +3,9 @@
 #pragma once
 
 #include <linux/nl80211.h>
+#include <net/ethernet.h>
 
-#include "netlink-util.h"
+#include "sd-netlink.h"
 
 int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *iftype, char **ssid);
 int wifi_get_station(sd_netlink *genl, int ifindex, struct ether_addr *bssid);