mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
messages: Fixed cast warnings on Windows.
This commit is contained in:
@@ -494,7 +494,7 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open){
|
|||||||
ssh_string_free(destination);
|
ssh_string_free(destination);
|
||||||
|
|
||||||
buffer_get_u32(packet, &destination_port);
|
buffer_get_u32(packet, &destination_port);
|
||||||
msg->channel_request_open.destination_port = ntohl(destination_port);
|
msg->channel_request_open.destination_port = (uint16_t) ntohl(destination_port);
|
||||||
|
|
||||||
originator = buffer_get_ssh_string(packet);
|
originator = buffer_get_ssh_string(packet);
|
||||||
if (originator == NULL) {
|
if (originator == NULL) {
|
||||||
@@ -510,7 +510,7 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open){
|
|||||||
ssh_string_free(originator);
|
ssh_string_free(originator);
|
||||||
|
|
||||||
buffer_get_u32(packet, &originator_port);
|
buffer_get_u32(packet, &originator_port);
|
||||||
msg->channel_request_open.originator_port = ntohl(originator_port);
|
msg->channel_request_open.originator_port = (uint16_t) ntohl(originator_port);
|
||||||
|
|
||||||
msg->channel_request_open.type = SSH_CHANNEL_DIRECT_TCPIP;
|
msg->channel_request_open.type = SSH_CHANNEL_DIRECT_TCPIP;
|
||||||
goto end;
|
goto end;
|
||||||
@@ -531,7 +531,7 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open){
|
|||||||
ssh_string_free(destination);
|
ssh_string_free(destination);
|
||||||
|
|
||||||
buffer_get_u32(packet, &destination_port);
|
buffer_get_u32(packet, &destination_port);
|
||||||
msg->channel_request_open.destination_port = ntohl(destination_port);
|
msg->channel_request_open.destination_port = (uint16_t) ntohl(destination_port);
|
||||||
|
|
||||||
originator = buffer_get_ssh_string(packet);
|
originator = buffer_get_ssh_string(packet);
|
||||||
if (originator == NULL) {
|
if (originator == NULL) {
|
||||||
@@ -547,7 +547,7 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open){
|
|||||||
ssh_string_free(originator);
|
ssh_string_free(originator);
|
||||||
|
|
||||||
buffer_get_u32(packet, &originator_port);
|
buffer_get_u32(packet, &originator_port);
|
||||||
msg->channel_request_open.originator_port = ntohl(originator_port);
|
msg->channel_request_open.originator_port = (uint16_t) ntohl(originator_port);
|
||||||
|
|
||||||
msg->channel_request_open.type = SSH_CHANNEL_FORWARDED_TCPIP;
|
msg->channel_request_open.type = SSH_CHANNEL_FORWARDED_TCPIP;
|
||||||
goto end;
|
goto end;
|
||||||
@@ -568,7 +568,7 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open){
|
|||||||
ssh_string_free(originator);
|
ssh_string_free(originator);
|
||||||
|
|
||||||
buffer_get_u32(packet, &originator_port);
|
buffer_get_u32(packet, &originator_port);
|
||||||
msg->channel_request_open.originator_port = ntohl(originator_port);
|
msg->channel_request_open.originator_port = (uint16_t) ntohl(originator_port);
|
||||||
|
|
||||||
msg->channel_request_open.type = SSH_CHANNEL_X11;
|
msg->channel_request_open.type = SSH_CHANNEL_X11;
|
||||||
goto end;
|
goto end;
|
||||||
|
|||||||
Reference in New Issue
Block a user