Skip to content

Commit

Permalink
[appsync-dbus] Fix small error checking bug
Browse files Browse the repository at this point in the history
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 ea82491
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/usb_moded-appsync-dbus-private.h
Expand Up @@ -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);
2 changes: 1 addition & 1 deletion src/usb_moded-appsync-dbus.c
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/usb_moded-appsync.c
Expand Up @@ -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 */
}
Expand Down

0 comments on commit ea82491

Please sign in to comment.