Mercurial > gftp.yaz
diff lib/sshv2.c @ 177:aec4b4541d3a
2003-6-9 Brian Masney <masneyb@gftp.org>
* lib/bookmark.c lib/gftp.h lib/local.c lib/protocols.c lib/rfc2068.c
lib/rfc959.c lib/sshv2.c - make return value of *_set_config_options()
be an integer
* lib/rfc2068.c lib/rfc959.c - return the error code of
gftp_connect_server() if there was a connection problem
author | masneyb |
---|---|
date | Tue, 10 Jun 2003 12:03:54 +0000 |
parents | 4c288d05b26a |
children | 13ca1defdc75 |
line wrap: on
line diff
--- a/lib/sshv2.c Mon Jun 09 23:16:53 2003 +0000 +++ b/lib/sshv2.c Tue Jun 10 12:03:54 2003 +0000 @@ -2217,13 +2217,14 @@ } -static void +static int sshv2_set_config_options (gftp_request * request) { int ssh_need_userpass; gftp_lookup_request_option (request, "ssh_need_userpass", &ssh_need_userpass); request->need_userpass = ssh_need_userpass; + return (0); } @@ -2289,11 +2290,10 @@ request->always_connected = 0; request->protocol_data = g_malloc0 (sizeof (sshv2_params)); request->server_type = GFTP_DIRTYPE_UNIX; - gftp_set_config_options (request); params = request->protocol_data; params->id = 1; - return (0); + return (gftp_set_config_options (request)); }