[Pkg-wmaker-commits] [wmppp.app] 82/120: wmppp.app: Use #includes from include-what-you-use.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 27 12:04:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmppp.app.

commit 66e0d5da6bd64315163ff3056632190804aae7d9
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Tue May 19 22:31:04 2015 -0500

    wmppp.app: Use #includes from include-what-you-use.
    
    We actually include <sys/socket.h> instead of <bits/socket_type.h>, as it
    returns an error: "Never include <bits/socket_type.h> directly; use
    <sys/socket.h> instead."
---
 wmppp.c | 43 +++++++++++++++++--------------------------
 1 file changed, 17 insertions(+), 26 deletions(-)

diff --git a/wmppp.c b/wmppp.c
index 6eede6d..43fb696 100644
--- a/wmppp.c
+++ b/wmppp.c
@@ -156,32 +156,23 @@
 		* A bit of code clean-up.
 */
 
-#include <stdlib.h>
-#include <stdio.h>
-#include <time.h>
-#include <string.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <ctype.h>
-
-#include <sys/wait.h>
-#include <sys/stat.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <sys/socket.h>
-
-#include <net/ppp_defs.h>
-#include <net/if_ppp.h>
-
-#include <X11/Xlib.h>
-#include <X11/xpm.h>
-#include <X11/extensions/shape.h>
-
-#include "wmgeneral/wmgeneral.h"
-#include "wmgeneral/misc.h"
-
-#include "wmppp-master.xpm"
+#include <X11/X.h>                     /* for ButtonPress, ButtonRelease, etc */
+#include <X11/Xlib.h>                  /* for XEvent, XButtonEvent, etc */
+#include <sys/socket.h>                /* for SOCK_DGRAM */
+#include <linux/ppp_defs.h>            /* for ppp_stats, pppstat */
+#include <net/if_ppp.h>                /* for ifpppstatsreq, etc */
+#include <stdio.h>                     /* for fprintf, stderr, NULL, etc */
+#include <stdlib.h>                    /* for exit, atoi, getenv, etc */
+#include <string.h>                    /* for strcpy, memset, strcmp, etc */
+#include <sys/ioctl.h>                 /* for ioctl */
+#include <sys/socket.h>                /* for socket, AF_INET */
+#include <sys/stat.h>                  /* for stat, st_mtime */
+#include <sys/types.h>                 /* for pid_t */
+#include <sys/wait.h>                  /* for waitpid, WNOHANG */
+#include <time.h>                      /* for timespec, nanosleep, time */
+#include "wmgeneral/misc.h"            /* for execCommand */
+#include "wmgeneral/wmgeneral.h"       /* for copyXPMArea, RedrawWindow, etc */
+#include "wmppp-master.xpm"            /* for wmppp_master_xpm */
 
   /***********/
  /* Defines */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmppp.app.git



More information about the Pkg-wmaker-commits mailing list