Skip to content
Permalink
Browse files
[appsync-dbus] Fix small error checking bug
Fix error checking bug on dbus-launch and some more const cast fixing.

Signed-off-by: Philippe De Swert <philippedeswert@gmail.com>
  • Loading branch information
philippedeswert committed Dec 30, 2014
1 parent a0b4dd1 commit ea8249106925fdbda65243df8991854238729408
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/usb_moded-appsync-dbus-private.h
  2. +1 −1 src/usb_moded-appsync-dbus.c
  3. +1 −1 src/usb_moded-appsync.c
@@ -20,5 +20,5 @@

gboolean usb_moded_app_sync_init(void);
void usb_moded_appsync_cleanup(void);
int usb_moded_dbus_app_launch(const char *launch);
int usb_moded_dbus_app_launch(char *launch);
gboolean usb_moded_app_sync_init_connection(void);
@@ -425,7 +425,7 @@ static gboolean startservicebyname(const char *name)
/**
* Launch applications over dbus that need to be synchronized
*/
int usb_moded_dbus_app_launch(const char *launch)
int usb_moded_dbus_app_launch(char *launch)
{
int ret = -1; // assume failure

@@ -334,7 +334,7 @@ int activate_sync_post(const char *mode)
continue;
#ifdef APP_SYNC_DBUS
else
if(usb_moded_dbus_app_launch(data->launch != 0))
if(usb_moded_dbus_app_launch(data->launch) != 0)
goto error;
#endif /* APP_SYNC_DBUS */
}

0 comments on commit ea82491

Please sign in to comment.