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:
authorChristopher Faylor <me@cgf.cx>2001-09-06 08:41:59 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-06 08:41:59 +0400
commit08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca (patch)
treea894d2763c28d56bc24769252b17870c38ab7141 /winsup/cygwin/pinfo.cc
parent4ce15a498010f678c71cefdf2a2ac0db58f4fa93 (diff)
Remove initialization of static or global values to zero, throughout. This
just needlessly grows the size of the DLL. * tty.cc (tty::alive): Make inuse handle non-inheriting on open, just for thread safety.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 63ecce4e5..14e8b819b 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -31,7 +31,7 @@ static char NO_COPY pinfo_dummy[sizeof(pinfo)] = {0};
pinfo NO_COPY myself ((_pinfo *)&pinfo_dummy); // Avoid myself != NULL checks
-HANDLE hexec_proc = NULL;
+HANDLE hexec_proc;
void __stdcall
pinfo_fixup_after_fork ()
@@ -319,7 +319,7 @@ winpids::add (DWORD& nelem, bool winpid, DWORD pid)
DWORD
winpids::enumNT (bool winpid)
{
- static DWORD szprocs = 0;
+ static DWORD szprocs;
static SYSTEM_PROCESSES *procs;
DWORD nelem = 0;