Skip to content

Commit

Permalink
Merge pull request FreeRDP#716 from jviksell/compiler_warnings
Browse files Browse the repository at this point in the history
Remove some compiler warnings
  • Loading branch information
giox069 committed Jan 5, 2016
2 parents b7b8c74 + d3466f7 commit 84561f5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
5 changes: 3 additions & 2 deletions remmina-plugins/nx/nx_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ static gboolean onMainThread_cb(struct onMainThread_cb_data *d)
}


static void onMainThread_cleanup_handler( struct onMainThread_cb_data *d )
static void onMainThread_cleanup_handler(gpointer data)
{
TRACE_CALL("onMainThread_cleanup_handler");
struct onMainThread_cb_data *d = data;
d->cancelled = TRUE;
}

Expand All @@ -103,7 +104,7 @@ static void onMainThread_schedule_callback_and_wait( struct onMainThread_cb_data
{
TRACE_CALL("onMainThread_schedule_callback_and_wait");
d->cancelled = FALSE;
pthread_cleanup_push( onMainThread_cleanup_handler, (void *)d );
pthread_cleanup_push( onMainThread_cleanup_handler, d );
pthread_mutex_init( &d->mu, NULL );
pthread_mutex_lock( &d->mu );
gdk_threads_add_idle( (GSourceFunc)onMainThread_cb, (gpointer) d );
Expand Down
5 changes: 3 additions & 2 deletions remmina-plugins/vnc/vnc_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ static gboolean onMainThread_cb(struct onMainThread_cb_data *d)
}


static void onMainThread_cleanup_handler( struct onMainThread_cb_data *d )
static void onMainThread_cleanup_handler( gpointer data )
{
TRACE_CALL("onMainThread_cleanup_handler");
struct onMainThread_cb_data *d = data;
d->cancelled = TRUE;
}

Expand All @@ -185,7 +186,7 @@ static void onMainThread_schedule_callback_and_wait( struct onMainThread_cb_data
{
TRACE_CALL("onMainThread_schedule_callback_and_wait");
d->cancelled = FALSE;
pthread_cleanup_push( onMainThread_cleanup_handler, (void *)d );
pthread_cleanup_push( onMainThread_cleanup_handler, d );
pthread_mutex_init( &d->mu, NULL );
pthread_mutex_lock( &d->mu );
gdk_threads_add_idle( (GSourceFunc)onMainThread_cb, (gpointer) d );
Expand Down
6 changes: 3 additions & 3 deletions remmina/src/remmina_connection_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ static void remmina_connection_holder_toolbar_tools(GtkWidget* widget, RemminaCo
RemminaConnectionWindowPriv* priv = cnnhld->cnnwin->priv;
const RemminaProtocolFeature* feature;
GtkWidget* menu;
GtkWidget* menuitem;
GtkWidget* menuitem = NULL;
GtkMenu *submenu_keystrokes;
const gchar* domain;
gboolean enabled;
Expand Down Expand Up @@ -1772,9 +1772,9 @@ static void remmina_connection_holder_update_toolbar(RemminaConnectionHolder* cn
gtk_window_set_title(GTK_WINDOW(cnnhld->cnnwin), remmina_file_get_string(cnnobj->remmina_file, "name"));

#if FLOATING_TOOLBAR_WIDGET
test_floating_toolbar = (priv->floating_toolbar_widget);
test_floating_toolbar = (priv->floating_toolbar_widget != NULL);
#else
test_floating_toolbar = (priv->floating_toolbar_window);
test_floating_toolbar = (priv->floating_toolbar_window != NULL);
#endif
if (test_floating_toolbar)
{
Expand Down
3 changes: 2 additions & 1 deletion remmina/src/remmina_masterthread_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ static gboolean remmina_masterthread_exec_callback(RemminaMTExecData *d)
return G_SOURCE_REMOVE;
}

static void remmina_masterthread_exec_cleanup_handler(RemminaMTExecData *d)
static void remmina_masterthread_exec_cleanup_handler(gpointer data)
{
RemminaMTExecData *d = data;
d->cancelled = TRUE;
}

Expand Down

0 comments on commit 84561f5

Please sign in to comment.