aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2019-03-12 11:32:23 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-03-25 18:50:33 +0100
commit3ce9f78fb48bccfe6f24f142753dffe91f760524 (patch)
tree89107ff267bcebdd339e696e1439dbb612561cae /include
parent5104c86a2bc943def4a420e2e68eca277de54940 (diff)
downloadlibssh-3ce9f78fb48bccfe6f24f142753dffe91f760524.tar.gz
libssh-3ce9f78fb48bccfe6f24f142753dffe91f760524.tar.xz
libssh-3ce9f78fb48bccfe6f24f142753dffe91f760524.zip
The ssh_channel_callbacks_struct member name is channel_data_function.
Addressing client.c: In function ‘show_remote_uptime’: client.c:107:6: error: ‘struct ssh_channel_callbacks_struct’ has no member named ‘channel_data’ .channel_data = my_channel_data_function, ^~~~~~~~~~~~ client.c:107:21: warning: initialization of ‘long unsigned int’ from ‘int (*)(struct ssh_session_struct *, struct ssh_channel_struct *, void *, uint32_t, int, void *)’ {aka ‘int (*)(struct ssh_session_struct *, struct ssh_channel_struct *, void *, unsigned int, int, void *)’} makes integer from pointer without a cast [-Wint-conversion] .channel_data = my_channel_data_function, ^~~~~~~~~~~~~~~~~~~~~~~~ client.c:107:21: note: (near initialization for ‘cb.size’) Signed-off-by: Jan Pazdziora <jpazdziora@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/callbacks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h
index 4e71b3b9..554527c7 100644
--- a/include/libssh/callbacks.h
+++ b/include/libssh/callbacks.h
@@ -854,7 +854,7 @@ typedef struct ssh_channel_callbacks_struct *ssh_channel_callbacks;
* @code
* struct ssh_channel_callbacks_struct cb = {
* .userdata = data,
- * .channel_data = my_channel_data_function
+ * .channel_data_function = my_channel_data_function
* };
* ssh_callbacks_init(&cb);
* ssh_set_channel_callbacks(channel, &cb);