[hipl-commit] [trunk] Rev 3962: Move hipd.h header inclusion from the .h file to the .c file, where it belongs.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 16 Mar 2010 17:21:21 +0200

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 16/03/2010 at 17:21:21
Revision: 3962
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Move hipd.h header inclusion from the .h file to the .c file, where it 
belongs.
  This neatly avoids an unnecessary header recursion.

Modified:
  M  hipd/accessor.c
  M  hipd/accessor.h

=== modified file 'hipd/accessor.c'
--- hipd/accessor.c     2010-03-16 15:05:24 +0000
+++ hipd/accessor.c     2010-03-16 15:20:51 +0000
@@ -14,6 +14,7 @@
 
 #include "config.h"
 #include "accessor.h"
+#include "hipd.h"
 
 unsigned int hipd_state         = HIPD_STATE_CLOSED;
 #ifdef CONFIG_HIP_OPPORTUNISTIC

=== modified file 'hipd/accessor.h'
--- hipd/accessor.h     2010-03-16 15:03:42 +0000
+++ hipd/accessor.h     2010-03-16 15:20:51 +0000
@@ -1,8 +1,6 @@
 #ifndef HIP_HIPD_ACCESSOR_H
 #define HIP_HIPD_ACCESSOR_H
 
-#include "hipd.h" /* @todo: header recursion: hipd.h calls accessor.h */
-
 #include "lib/core/hashtable.h"
 
 #include <sys/time.h>

Other related posts:

  • » [hipl-commit] [trunk] Rev 3962: Move hipd.h header inclusion from the .h file to the .c file, where it belongs. - Diego Biurrun