diff options
author | João Valverde <j@v6e.pt> | 2023-05-26 01:16:59 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2023-05-26 01:16:59 +0100 |
commit | 9f7f472f49f92d48cf0a659386cbab36fa4ba837 (patch) | |
tree | 8c21abd0c707ff36289bb541b56f2b200230897a /extcap | |
parent | dde314f4b28706aeeb65880bc401e284d15d7942 (diff) |
androiddump: Fix warning [-Wdiscarded-qualifier]
wireshark/extcap/androiddump.c:573:48: warning: passing argument 5 of 'select' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
573 | if ((select(0, NULL, &fdset, NULL, &timeout) != 0) && (FD_ISSET(sock, &fdset))) {
| ^~~~~~~~
Diffstat (limited to 'extcap')
-rw-r--r-- | extcap/androiddump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extcap/androiddump.c b/extcap/androiddump.c index ebec32dcee..78b8156dd1 100644 --- a/extcap/androiddump.c +++ b/extcap/androiddump.c @@ -563,7 +563,7 @@ static socket_handle_t adb_connect(const char *server_ip, unsigned short *server #ifdef _WIN32 if ((status == SOCKET_ERROR) && (WSAGetLastError() == WSAEWOULDBLOCK)) { - const struct timeval timeout = { + struct timeval timeout = { .tv_sec = 0, .tv_usec = SOCKET_CONNECT_DELAY_US, }; |