Committer: Diego Biurrun <diego@xxxxxxxxxx> Date: 20/04/2010 at 13:48:39 Revision: 4352 Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Move conditional global variable opportunistic_mode to where it is used. This saves one #ifdef. Modified: M hipd/accessor.c === modified file 'hipd/accessor.c' --- hipd/accessor.c 2010-04-20 10:44:16 +0000 +++ hipd/accessor.c 2010-04-20 10:47:50 +0000 @@ -16,9 +16,6 @@ #include "hipd.h" unsigned int hipd_state = HIPD_STATE_CLOSED; -#ifdef CONFIG_HIP_OPPORTUNISTIC -unsigned int opportunistic_mode = 1; -#endif // CONFIG_HIP_OPPORTUNISTIC /** * Set global daemon state. @@ -72,6 +69,9 @@ } #ifdef CONFIG_HIP_OPPORTUNISTIC + +unsigned int opportunistic_mode = 1; + /** * Set opportunistic TCP status on or off *