wmifs: Tidy #includes using include-what-you-use.

This commit is contained in:
Doug Torrance 2015-05-27 17:33:26 -05:00 committed by Carlos R. Mafra
parent 951f7624c6
commit ea33cf06ce

View file

@ -177,34 +177,25 @@
*/ */
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#include <stdlib.h> #include <X11/X.h> /* for ButtonPress, ButtonRelease, etc */
#include <stdio.h> #include <X11/Xlib.h> /* for XEvent, XButtonEvent, etc */
#include <time.h> #include <X11/xpm.h> /* for XpmColorSymbol, Pixel, etc */
#include <string.h> #include <ctype.h> /* for toupper */
#include <fcntl.h> #include <linux/ppp_defs.h> /* for ppp_stats, pppstat */
#include <unistd.h> #include <net/if_ppp.h> /* for ifpppstatsreq, ifr__name, etc */
#include <ctype.h> #include <stddef.h> /* for size_t */
#include <stdio.h> /* for fprintf, NULL, stderr, etc */
#include <sys/wait.h> #include <stdlib.h> /* for exit, atof, atoi, getenv */
#include <sys/stat.h> #include <string.h> /* for strcmp, strcpy, strlen, etc */
#include <sys/param.h> #include <sys/ioctl.h> /* for ioctl */
#include <sys/types.h> #include <sys/socket.h> /* for socket, AF_INET */
#include <sys/ioctl.h> #include <sys/time.h> /* for timeval, gettimeofday */
#include <sys/socket.h> #include <sys/wait.h> /* for waitpid, WNOHANG */
#include <sys/time.h> #include <time.h> /* for timespec, nanosleep */
#include "wmgeneral/misc.h" /* for execCommand */
#include <X11/Xlib.h> #include "wmgeneral/wmgeneral.h" /* for copyXPMArea, display, etc */
#include <X11/xpm.h> #include "wmifs-mask.xbm" /* for wmifs_mask_bits, etc */
#include <X11/extensions/shape.h> #include "wmifs-master.xpm" /* for wmifs_master_xpm */
#include <net/ppp_defs.h>
#include <net/if_ppp.h>
#include "wmgeneral/wmgeneral.h"
#include "wmgeneral/misc.h"
#include "wmifs-master.xpm"
#include "wmifs-mask.xbm"
/* How often to check for new network interface, in ms */ /* How often to check for new network interface, in ms */
#define CHECK_INTERFACE_INTERVAL 5000 #define CHECK_INTERFACE_INTERVAL 5000