*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ser-tcp.c
index df12b8763362b7d5a741fd53f82cbb91cd52b99a..cb862e7e55cd77d2b89dac89fc87b30a2b0c0306 100644 (file)
@@ -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;
@@ -208,7 +209,7 @@ net_open (struct serial *scb, const char *name)
   else
     scb->fd = socket (PF_INET, SOCK_STREAM, 0);
 
-  if (scb->fd < 0)
+  if (scb->fd == -1)
     return -1;
   
   /* set socket nonblocking */
@@ -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 *"
@@ -323,7 +325,7 @@ net_open (struct serial *scb, const char *name)
 void
 net_close (struct serial *scb)
 {
-  if (scb->fd < 0)
+  if (scb->fd == -1)
     return;
 
   close (scb->fd);
@@ -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";
This page took 0.025301 seconds and 4 git commands to generate.