summaryrefslogtreecommitdiff
path: root/gdb/ser-tcp.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2010-05-16 23:49:57 +0000
committerMichael Snyder <msnyder@specifix.com>2010-05-16 23:49:57 +0000
commitd3127cbfffc1e22603ab33e2b170b443982d3c0d (patch)
tree2fd0f4b1ad5106c56302ecdb123462917601ba3d /gdb/ser-tcp.c
parent45d63159a5eb58a3f886a12967f631e15a6a8033 (diff)
downloadgdb-d3127cbfffc1e22603ab33e2b170b443982d3c0d.tar.gz
2010-05-16 Michael Snyder <msnyder@vmware.com>
* scm-exp.c: White space. * scm-lang.c: White space. * scm-valprint.c: White space. * sentinel-frame.c: White space. * ser-base.c: White space. * ser-go32.c: White space. * serial.c: White space. * ser-mingw.c: White space. * ser-pipe.c: White space. * ser-tcp.c: White space. * ser-unix.c: White space. * solib.c: White space. * solib-darwin.c: White space. * solib-frv.c: White space. * solib-irix.c: White space. * solib-osf.c: White space. * solib-pa64.c: White space. * solib-som.c: White space. * solib-spu.c: White space. * solib-svr4.c: White space. * solib-target.c: White space. * source.c: White space. * stabsread.c: White space. * stack.c: White space. * std-regs.c: White space. * symfile.c: White space. * symmisc.c: White space. * symtab.c: White space.
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r--gdb/ser-tcp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index df12b876336..dd685e69348 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -119,6 +119,7 @@ wait_for_connect (struct serial *scb, int *polls)
if (scb)
{
fd_set rset, wset, eset;
+
FD_ZERO (&rset);
FD_SET (scb->fd, &rset);
wset = rset;
@@ -272,6 +273,7 @@ net_open (struct serial *scb, const char *name)
{
int res, err;
socklen_t len;
+
len = sizeof (err);
/* On Windows, the fourth parameter to getsockopt is a "char *";
on UNIX systems it is generally "void *". The cast to "void *"
@@ -372,6 +374,7 @@ _initialize_ser_tcp (void)
ser-mingw.c. */
#else
struct serial_ops *ops;
+
ops = XMALLOC (struct serial_ops);
memset (ops, 0, sizeof (struct serial_ops));
ops->name = "tcp";