diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-09-22 20:27:53 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-09-22 20:27:53 +0200 |
commit | aae1df0589781dc2db789658f1836d17aeb18413 (patch) | |
tree | bfff1448b73a97103f2d5c4c6ce76457d5ae87d1 /sample.c | |
parent | 0a57ebb3a9b3b0acaf88a8386c9e20e41bdfe8b4 (diff) | |
download | libssh-aae1df0589781dc2db789658f1836d17aeb18413.tar.gz libssh-aae1df0589781dc2db789658f1836d17aeb18413.tar.xz libssh-aae1df0589781dc2db789658f1836d17aeb18413.zip |
Use new options interface in sample code.
Diffstat (limited to 'sample.c')
-rw-r--r-- | sample.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -521,13 +521,13 @@ int main(int argc, char **argv){ signal(SIGTERM, do_exit); if (user) { - if (ssh_options_set_username(options,user) < 0) { + if (ssh_options_set(options, SSH_OPTIONS_USER, user) < 0) { ssh_options_free(options); return 1; } } - if (ssh_options_set_host(options,host) < 0) { + if (ssh_options_set(options, SSH_OPTIONS_HOST ,host) < 0) { ssh_options_free(options); return 1; } |