summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/net.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-06 04:41:59 +0000
committerChristopher Faylor <me@cgf.cx>2001-09-06 04:41:59 +0000
commit08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca (patch)
treea894d2763c28d56bc24769252b17870c38ab7141 /winsup/cygwin/net.cc
parent4ce15a498010f678c71cefdf2a2ac0db58f4fa93 (diff)
downloadcygnal-08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca.tar.gz
cygnal-08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca.tar.bz2
cygnal-08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca.zip
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/net.cc')
-rw-r--r--winsup/cygwin/net.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 1715b16cb..34489da8e 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -1072,8 +1072,8 @@ cygwin_gethostbyname (const char *name)
{
static unsigned char tmp_addr[4];
static struct hostent tmp;
- static char *tmp_aliases[1] = {0};
- static char *tmp_addr_list[2] = {0, 0};
+ static char *tmp_aliases[1];
+ static char *tmp_addr_list[2];
static int a, b, c, d;
if (sscanf (name, "%d.%d.%d.%d", &a, &b, &c, &d) == 4)