diff options
author | myheroyuki <myheroyuki@outlook.com> | 2023-07-17 18:15:23 +0300 |
---|---|---|
committer | myheroyuki <myheroyuki@outlook.com> | 2023-07-17 18:15:23 +0300 |
commit | ab2175930f91909a837be2ad13430a3b41488d9c (patch) | |
tree | afcb45b7bdcd8fe34d2b3534e6f2a12b5490da48 /plugins | |
parent | f5485fcfdc539e199b2763b9d69fc13f657164f7 (diff) |
Fix some compiler warnings
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/rdp/rdp_plugin.c | 3 | ||||
-rw-r--r-- | plugins/vnc/vnc_plugin.c | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/rdp/rdp_plugin.c b/plugins/rdp/rdp_plugin.c index 0a310f767..4d18132e9 100644 --- a/plugins/rdp/rdp_plugin.c +++ b/plugins/rdp/rdp_plugin.c @@ -1400,9 +1400,10 @@ static gboolean remmina_rdp_main(RemminaProtocolWidget *gp) } - if (!freerdp_assistance_populate_settings_from_assistance_file(file, rfi->settings)) + if (!freerdp_assistance_populate_settings_from_assistance_file(file, rfi->settings)){ REMMINA_PLUGIN_DEBUG("Could not populate settings from assistance file"); return FALSE; + } } diff --git a/plugins/vnc/vnc_plugin.c b/plugins/vnc/vnc_plugin.c index 7749c80c2..633a2a921 100644 --- a/plugins/vnc/vnc_plugin.c +++ b/plugins/vnc/vnc_plugin.c @@ -1915,7 +1915,6 @@ static gboolean remmina_plugin_vnc_on_size_allocate(GtkWidget *widget, GtkAlloca sprintf(str, "DEBUG: %d x %d", alloc->width, alloc->height); TRACE_CALL(str); if (gpdata->client){ - rfbClient *cl; SendExtDesktopSize(gpdata->client, alloc->width, alloc->height); } } @@ -1980,9 +1979,9 @@ static void remmina_plugin_vnc_init(RemminaProtocolWidget *gp) if (aspect_ratio > 0){ GtkWidget* aspectframe = gtk_aspect_frame_new(NULL, 0, 0, aspect_ratio, FALSE); - gtk_frame_set_shadow_type(aspectframe, GTK_SHADOW_NONE); + gtk_frame_set_shadow_type(GTK_FRAME(aspectframe), GTK_SHADOW_NONE); gtk_widget_show(aspectframe); - gtk_container_add(aspectframe, gpdata->drawing_area); + gtk_container_add(GTK_CONTAINER(aspectframe), gpdata->drawing_area); gtk_container_add(GTK_CONTAINER(gp), aspectframe); } else{ |