Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-05-03 20:18:51 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-05-03 20:18:51 +0400
commit6c22ecdd3204d386223c80d3caa5838123072354 (patch)
treebfd76ba38d9b437a25378be3562d4421b50b93f4 /winsup/cygwin/net.cc
parent70c7f359b1fd9aefb9b32fe7486e6909fc81e306 (diff)
* net.cc (wsock_init): Rename `was_in_progress' to `wsock_started'
for clearness.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 72c7010d8..56848877b 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -1929,14 +1929,14 @@ extern "C" void
wsock_init ()
{
static LONG NO_COPY here = -1L;
- static int NO_COPY was_in_progress = 0;
+ static int NO_COPY wsock_started = 0;
while (InterlockedIncrement (&here))
{
InterlockedDecrement (&here);
Sleep (0);
}
- if (!was_in_progress && (wsock32_handle || ws2_32_handle))
+ if (!wsock_started && (wsock32_handle || ws2_32_handle))
{
/* Don't use autoload to load WSAStartup to eliminate recursion. */
int (*wsastartup) (int, WSADATA *);
@@ -1957,7 +1957,7 @@ wsock_init ()
debug_printf ("iMaxUdpDg %d", wsadata.iMaxUdpDg);
debug_printf ("lpVendorInfo %d", wsadata.lpVendorInfo);
- was_in_progress = 1;
+ wsock_started = 1;
}
}
InterlockedDecrement (&here);