[pisa-src] r1802 - in trunk/pairing: create_send_headers.c create_send_headers.h send.c send.h

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 26 Nov 2009 14:40:02 +0100

Author: biurrun
Date: Thu Nov 26 14:40:02 2009
New Revision: 1802

Log:
header cleanup: #include only necessary headers in the .c files.

Modified:
   trunk/pairing/create_send_headers.c
   trunk/pairing/create_send_headers.h
   trunk/pairing/send.c
   trunk/pairing/send.h

Modified: trunk/pairing/create_send_headers.c
==============================================================================
--- trunk/pairing/create_send_headers.c Thu Nov 26 14:26:44 2009        (r1801)
+++ trunk/pairing/create_send_headers.c Thu Nov 26 14:40:02 2009        (r1802)
@@ -10,6 +10,13 @@
  * @date Sep. 2008
  */
 
+#include <libconfig.h>
+#include <stddef.h>
+#include <string.h>
+#include "common.h"
+#include "common_headers.h"
+#include "send.h"
+
 #include "create_send_headers.h"
 
 

Modified: trunk/pairing/create_send_headers.h
==============================================================================
--- trunk/pairing/create_send_headers.h Thu Nov 26 14:26:44 2009        (r1801)
+++ trunk/pairing/create_send_headers.h Thu Nov 26 14:40:02 2009        (r1802)
@@ -13,9 +13,6 @@
 #ifndef PISA_CREATE_SEND_HEADERS_H
 #define PISA_CREATE_SEND_HEADERS_H
 
-#include "common_headers.h"
-#include "send.h"
-
 // Function prototypes
 header_general* create_pwd_struct(char *password);
 header_general* create_pwd_request_struct(void);

Modified: trunk/pairing/send.c
==============================================================================
--- trunk/pairing/send.c        Thu Nov 26 14:26:44 2009        (r1801)
+++ trunk/pairing/send.c        Thu Nov 26 14:40:02 2009        (r1802)
@@ -10,6 +10,20 @@
  * @date Sep. 2008
  */
 
+#include <libconfig.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
+#include <netinet/in.h>
+#include "common_headers.h"
+#include "common.h"
+#include "packet_handler.h"
+#include "libconfig_wrapper.h"
+#include "create_send_headers.h"
 #include "send.h"
 
 // When these are updated, the user message in parse_options() should also be 
updated

Modified: trunk/pairing/send.h
==============================================================================
--- trunk/pairing/send.h        Thu Nov 26 14:26:44 2009        (r1801)
+++ trunk/pairing/send.h        Thu Nov 26 14:40:02 2009        (r1802)
@@ -13,21 +13,6 @@
 #ifndef PISA_SEND_H
 #define PISA_SEND_H
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <string.h>
-#include <unistd.h>
-#include <arpa/inet.h>
-#include "common_headers.h"
-#include "common.h"
-#include "packet_handler.h"
-#include "libconfig_wrapper.h"
-#include "create_send_headers.h"
-
-
 // Holds integers which indicate various options
 struct extras {
        int     request_type;

Other related posts:

  • » [pisa-src] r1802 - in trunk/pairing: create_send_headers.c create_send_headers.h send.c send.h - Diego Biurrun