projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*** empty log message ***
[binutils-gdb.git]
/
gdb
/
ser-tcp.c
diff --git
a/gdb/ser-tcp.c
b/gdb/ser-tcp.c
index dd685e69348a351580f31ce0b37751e8d3f1f39f..cb862e7e55cd77d2b89dac89fc87b30a2b0c0306 100644
(file)
--- a/
gdb/ser-tcp.c
+++ b/
gdb/ser-tcp.c
@@
-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);