From 5bd38a5f376772cc4be5d59d8cfa9a6ff9a517cf Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 23 Sep 2009 21:30:56 +0200 Subject: Changed the current callback sys to be scalable --- libssh/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libssh/client.c') diff --git a/libssh/client.c b/libssh/client.c index cbc70e3..79c8249 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -33,8 +33,8 @@ #include "libssh/ssh2.h" #define set_status(opt,status) do {\ - if (opt->connect_status_function) \ - opt->connect_status_function(opt->connect_status_arg, status); \ + if (opt->callbacks && opt->callbacks->connect_status_function) \ + opt->callbacks->connect_status_function(opt->callbacks->userdata, status); \ } while (0) /** -- cgit