aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2019-04-30 15:48:06 -0700
committerGerald Combs <gerald@wireshark.org>2019-05-01 17:51:59 +0000
commitcec5991f40887b4b2add594e7d82857d475224aa (patch)
tree5f4e0dc3846b2cce60c0f22bef7c111236b84957 /tshark.c
parent3a2e290c331f03b2467d49d5c04151aab9f1a4d9 (diff)
Windows: Modernize our WSAStartup usage.
Make sure we link each application that calls WSAStartup with ws2_32.lib. Pass version 2.2 to WSAStartup. Wikipedia says it was introduced in 1996, so we should be OK. Ping-Bug: 15711 Change-Id: I431839e930e7c646669af7373789640b5180ec28 Reviewed-on: https://code.wireshark.org/review/33033 Petri-Dish: Gerald Combs <gerald@wireshark.org> Reviewed-by: Tomasz Moń <desowin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index 723683656b..a7834a8d7f 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1786,7 +1786,7 @@ main(int argc, char *argv[])
#ifdef _WIN32
/* Start windows sockets */
- result = WSAStartup( MAKEWORD( 1, 1 ), &wsaData );
+ result = WSAStartup( MAKEWORD( 2, 2 ), &wsaData );
if (result != 0)
{
exit_status = INIT_FAILED;