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:
Thomas Haller 2018-01-13 13:26:37 +01:00
parent 3de3f59ffd
commit 3cb81ee063
2 changed files with 8 additions and 6 deletions

View file

@ -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"

View file

@ -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;