mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 10:30:13 +01:00
wifi: cleanup includes
- always include the corresponding header file first after "nm-default.h". - include all our other headers last.
This commit is contained in:
parent
3de3f59ffd
commit
3cb81ee063
2 changed files with 8 additions and 6 deletions
|
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include "nm-default.h"
|
||||
|
||||
#include "wifi-utils-nl80211.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
|
@ -32,7 +34,6 @@
|
|||
#include <linux/nl80211.h>
|
||||
|
||||
#include "wifi-utils-private.h"
|
||||
#include "wifi-utils-nl80211.h"
|
||||
#include "platform/nm-platform.h"
|
||||
#include "platform/nm-platform-utils.h"
|
||||
#include "nm-utils.h"
|
||||
|
|
|
|||
|
|
@ -21,17 +21,14 @@
|
|||
|
||||
#include "nm-default.h"
|
||||
|
||||
#include "wifi-utils-wext.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <net/ethernet.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "wifi-utils-private.h"
|
||||
#include "wifi-utils-wext.h"
|
||||
#include "nm-utils.h"
|
||||
#include "platform/nm-platform-utils.h"
|
||||
|
||||
/* Hacks necessary to #include wireless.h; yay for WEXT */
|
||||
#ifndef __user
|
||||
#define __user
|
||||
|
|
@ -41,6 +38,10 @@
|
|||
#include <sys/socket.h>
|
||||
#include <linux/wireless.h>
|
||||
|
||||
#include "wifi-utils-private.h"
|
||||
#include "nm-utils.h"
|
||||
#include "platform/nm-platform-utils.h"
|
||||
|
||||
typedef struct {
|
||||
WifiData parent;
|
||||
int fd;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue