[hipl-commit] [trunk] Rev 4351: Declare hip_use_opptcp and hip_use_hi3 variables as extern in hipd/hipd.h.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 20 Apr 2010 13:46:04 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 20/04/2010 at 13:46:04
Revision: 4351
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Declare hip_use_opptcp and hip_use_hi3 variables as extern in hipd/hipd.h.
  
  The variables are in hipd/hipd.c, so this is the proper place for them.

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

=== modified file 'hipd/accessor.c'
--- hipd/accessor.c     2010-04-13 16:42:57 +0000
+++ hipd/accessor.c     2010-04-20 10:44:16 +0000
@@ -18,9 +18,7 @@
 unsigned int hipd_state         = HIPD_STATE_CLOSED;
 #ifdef CONFIG_HIP_OPPORTUNISTIC
 unsigned int opportunistic_mode = 1;
-extern int hip_use_opptcp;
 #endif // CONFIG_HIP_OPPORTUNISTIC
-extern int hip_use_hi3;
 
 /**
  * Set global daemon state.

=== modified file 'hipd/hipd.h'
--- hipd/hipd.h 2010-04-13 11:26:44 +0000
+++ hipd/hipd.h 2010-04-20 10:44:16 +0000
@@ -83,6 +83,8 @@
 
 #define HIPD_NL_GROUP 32
 
+extern int hip_use_opptcp;
+extern int hip_use_hi3;
 #ifdef CONFIG_HIP_AGENT
 extern sqlite3 *daemon_db;
 #endif

Other related posts:

  • » [hipl-commit] [trunk] Rev 4351: Declare hip_use_opptcp and hip_use_hi3 variables as extern in hipd/hipd.h. - Diego Biurrun