diff --git a/vpn-daemons/openvpn/src/nm-openvpn-service-openvpn-helper.c b/vpn-daemons/openvpn/src/nm-openvpn-service-openvpn-helper.c index a69271b12..c82336e14 100644 --- a/vpn-daemons/openvpn/src/nm-openvpn-service-openvpn-helper.c +++ b/vpn-daemons/openvpn/src/nm-openvpn-service-openvpn-helper.c @@ -199,7 +199,7 @@ static gboolean send_config_info (DBusConnection *con, * */ - +#if 0 /* FIXME: Nothing uses this and it is static */ /** Prints all environment variables to /tmp/environ */ static void @@ -212,6 +212,7 @@ print_env() } fclose(f); } +#endif /* diff --git a/vpn-daemons/openvpn/src/nm-openvpn-service.c b/vpn-daemons/openvpn/src/nm-openvpn-service.c index 033f37f1c..3acecc175 100644 --- a/vpn-daemons/openvpn/src/nm-openvpn-service.c +++ b/vpn-daemons/openvpn/src/nm-openvpn-service.c @@ -438,7 +438,6 @@ static gboolean nm_openvpn_connect_timer_cb (NmOpenVPNData *data) { struct sockaddr_in serv_addr; - int tries = 0; gboolean connected = FALSE; gint socket_fd = -1; NmOpenVPN_IOData *io_data; @@ -1517,10 +1516,11 @@ main( int argc, char *argv[] ) vpn_data->loop = g_main_loop_new (NULL, FALSE); - system ("/sbin/modprobe tun"); + if (system ("/sbin/modprobe tun") == -1) + exit (EXIT_FAILURE); if (!(vpn_data->con = nm_openvpn_dbus_init (vpn_data))) - exit (1); + exit (EXIT_FAILURE); action.sa_handler = sigterm_handler; sigemptyset (&block_mask); @@ -1537,5 +1537,5 @@ main( int argc, char *argv[] ) g_main_loop_unref (vpn_data->loop); g_free (vpn_data); - exit (0); + exit (EXIT_SUCCESS); }