HomePhabricator

The ssh_channel_callbacks_struct member name is channel_data_function.

Authored by adelton on Mar 12 2019, 11:32 AM.

Description

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>

Details

Committed
asnMar 25 2019, 6:50 PM
Parents
rLIBSSH5104c86a2bc9: auth: Set buffer used to store password as secure
Branches
Unknown
Tags
Unknown