Commit 66e8d5c2 authored by larchunix's avatar larchunix

ssh: remove unpaired G_GNUC_BEGIN_IGNORE_DEPRECATIONS

parent 454372a4
......@@ -1052,7 +1052,6 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
case REMMINA_SSH_TUNNEL_REVERSE:
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (ssh_forward_listen(REMMINA_SSH(tunnel)->session, NULL, tunnel->port, NULL)) {
G_GNUC_END_IGNORE_DEPRECATIONS
remmina_ssh_set_error(REMMINA_SSH (tunnel), _("Failed to request port forwarding : %s"));
if (tunnel->disconnect_func) {
(*tunnel->disconnect_func)(tunnel, tunnel->callback_data);
......@@ -1060,7 +1059,7 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
tunnel->thread = 0;
return NULL;
}
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
G_GNUC_END_IGNORE_DEPRECATIONS
if (tunnel->init_func &&
!(*tunnel->init_func)(tunnel, tunnel->callback_data)) {
......@@ -1102,7 +1101,6 @@ remmina_ssh_tunnel_main_thread_proc(gpointer data)
(*tunnel->connect_func)(tunnel, tunnel->callback_data);
}
if (tunnel->tunnel_type == REMMINA_SSH_TUNNEL_REVERSE) {
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* For reverse tunnel, we only need one connection. */
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
ssh_forward_cancel(REMMINA_SSH (tunnel)->session, NULL, tunnel->port);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment