From aae1df0589781dc2db789658f1836d17aeb18413 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 22 Sep 2009 20:27:53 +0200 Subject: Use new options interface in sample code. --- sample.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample.c b/sample.c index f028ceb..dade687 100644 --- a/sample.c +++ b/sample.c @@ -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; } -- cgit