[pisa-src] r1775 - in trunk/pairing: accept.c common.c management.c packet_handler_accept.c

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 25 Nov 2009 13:22:30 +0100

Author: biurrun
Date: Wed Nov 25 13:22:30 2009
New Revision: 1775

Log:
Remove misleading comment about header inclusion order.
libpisa/global.h need not be #included before other headers.

Modified:
   trunk/pairing/accept.c
   trunk/pairing/common.c
   trunk/pairing/management.c
   trunk/pairing/packet_handler_accept.c

Modified: trunk/pairing/accept.c
==============================================================================
--- trunk/pairing/accept.c      Wed Nov 25 13:21:12 2009        (r1774)
+++ trunk/pairing/accept.c      Wed Nov 25 13:22:30 2009        (r1775)
@@ -11,8 +11,8 @@
  * @date Sep. 2008
  */
 
-#include "libpisa/global.h"    /* it must be included before all other header 
files */
 #include "libpisa/cfg.h"
+#include "libpisa/global.h"
 #include "libpisa/hitlist.h"
 #include "accept.h"
 

Modified: trunk/pairing/common.c
==============================================================================
--- trunk/pairing/common.c      Wed Nov 25 13:21:12 2009        (r1774)
+++ trunk/pairing/common.c      Wed Nov 25 13:22:30 2009        (r1775)
@@ -13,11 +13,10 @@
 
 #define _XOPEN_SOURCE
 
-#include "libpisa/global.h"    /* it must be included before all other header 
files */
-
 #include <time.h>
 
 #include "common.h"
+#include "libpisa/global.h"
 #include "libpisa/cfg.h"
 #include "libconfig_wrapper.h"
 #include "common_headers.h"

Modified: trunk/pairing/management.c
==============================================================================
--- trunk/pairing/management.c  Wed Nov 25 13:21:12 2009        (r1774)
+++ trunk/pairing/management.c  Wed Nov 25 13:22:30 2009        (r1775)
@@ -19,9 +19,9 @@
 #include <getopt.h>
 #include <fcntl.h>
 
-#include "libpisa/global.h" /* it must be included before all other header 
files */
 #include "libpisa/cfg.h"
 #include "libpisa/debug.h"
+#include "libpisa/global.h"
 #include "common_headers.h"
 #include "common.h"
 #include "libpisa/util.h"

Modified: trunk/pairing/packet_handler_accept.c
==============================================================================
--- trunk/pairing/packet_handler_accept.c       Wed Nov 25 13:21:12 2009        
(r1774)
+++ trunk/pairing/packet_handler_accept.c       Wed Nov 25 13:22:30 2009        
(r1775)
@@ -11,8 +11,8 @@
  * @date Sep. 2008
  */
 
-#include "libpisa/global.h"    /* it must be included before all other header 
files */
 #include "libpisa/cfg.h"
+#include "libpisa/global.h"
 #include "libpisa/hitlist.h"
 #include "packet_handler_accept.h"
 

Other related posts:

  • » [pisa-src] r1775 - in trunk/pairing: accept.c common.c management.c packet_handler_accept.c - Diego Biurrun