Skip to content

Commit

Permalink
example: use libssh2_socket_t in X11 example
Browse files Browse the repository at this point in the history
Cherry-picked from libssh2#1277
  • Loading branch information
vszakats committed Dec 8, 2023
1 parent 798ed4a commit 3f60ccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
*/
struct chan_X11_list {
LIBSSH2_CHANNEL *chan;
int sock;
libssh2_socket_t sock;
struct chan_X11_list *next;
};

Expand Down Expand Up @@ -197,7 +197,7 @@ static void x11_callback(LIBSSH2_SESSION *session, LIBSSH2_CHANNEL *channel,
* Send and receive Data for the X11 channel.
* If the connection is closed, returns -1, 0 either.
*/
static int x11_send_receive(LIBSSH2_CHANNEL *channel, int sock)
static int x11_send_receive(LIBSSH2_CHANNEL *channel, libssh2_socket_t sock)
{
char *buf;
unsigned int bufsize = 8192;
Expand Down

0 comments on commit 3f60ccb

Please sign in to comment.