2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
[deliverable/binutils-gdb.git] / gdb / ser-tcp.c
index dd685e69348a351580f31ce0b37751e8d3f1f39f..cb862e7e55cd77d2b89dac89fc87b30a2b0c0306 100644 (file)
@@ -209,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 */
@@ -325,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);
This page took 0.0258 seconds and 4 git commands to generate.