diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-23 21:30:56 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-23 21:30:56 +0200 |
commit | 5bd38a5f376772cc4be5d59d8cfa9a6ff9a517cf (patch) | |
tree | 883fa0fdb2a0964ef161521cebb3b70379d621ff /libssh/client.c | |
parent | ab60d1d67847f2af20604f8890381a0cbbed0524 (diff) | |
download | libssh-5bd38a5f376772cc4be5d59d8cfa9a6ff9a517cf.tar.gz libssh-5bd38a5f376772cc4be5d59d8cfa9a6ff9a517cf.tar.xz libssh-5bd38a5f376772cc4be5d59d8cfa9a6ff9a517cf.zip |
Changed the current callback sys to be scalable
Diffstat (limited to 'libssh/client.c')
-rw-r--r-- | libssh/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) /** |