Skip to content

Commit

Permalink
fix small build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe De Swert committed Mar 1, 2012
1 parent a41635a commit a159695
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/usb_moded.c
Expand Up @@ -154,15 +154,15 @@ void set_usb_connected_state(void)
{

const char *mode_to_set;
#if defined MEEGOLOCK
#ifdef MEEGOLOCK
int export = 0;
#endif /* MEEGOLOCK */

/* signal usb connected */
log_debug("usb connected\n");
usb_moded_send_signal(USB_CONNECTED);
mode_to_set = get_mode_setting();
#if defined MEEGOLOCK
#ifdef MEEGOLOCK
/* check if we are allowed to export system contents 0 is unlocked */
export = usb_moded_get_export_permission();
#endif
Expand All @@ -172,7 +172,7 @@ void set_usb_connected_state(void)
act_dead = access("/tmp/USER", R_OK);
if(mode_to_set && !export && !act_dead)
#else
if(mode_to_set && !export)
if(mode_to_set)
#endif /* MEEGOLOCK */
{
#ifdef NOKIA
Expand Down Expand Up @@ -673,7 +673,7 @@ int main(int argc, char* argv[])
log_crit("hwal init failed\n");
goto EXIT;
}
#if defined MEEGOLOCK
#ifdef MEEGOLOCK
start_devicelock_listener();
if(!runlevel_ignore)
usb_moded_dsme_listener();
Expand Down

0 comments on commit a159695

Please sign in to comment.