The 3rd argument to recv() is an int on Windows.

Make the variable used for it an int; that's large enough, and, on
Windows, not so large that it provokes warnings.

Change-Id: I00600d816f69d79f7a42eb09b1290ff7708b0bfc
Reviewed-on: https://code.wireshark.org/review/22420
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2017-06-27 01:26:13 -07:00
parent e61d2f6243
commit f27699c746
1 changed files with 2 additions and 2 deletions

View File

@ -732,7 +732,7 @@ static char *adb_send_and_read(socket_handle_t sock, const char *adb_service, ch
static int adb_send(socket_handle_t sock, const char *adb_service) {
char buffer[5];
gssize used_buffer_length;
int used_buffer_length;
gssize result;
size_t adb_service_length;
@ -761,7 +761,7 @@ static int adb_send(socket_handle_t sock, const char *adb_service) {
return EXIT_CODE_ERROR_WHILE_RECEIVING_ADB_PACKET_STATUS;
}
used_buffer_length += result;
used_buffer_length += (int)result;
}
if (memcmp(buffer, "OKAY", 4)) {