summaryrefslogtreecommitdiff
path: root/sim/arm/communicate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/arm/communicate.c')
-rw-r--r--sim/arm/communicate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/arm/communicate.c b/sim/arm/communicate.c
index 2fabbaaac5e..fac2b60244e 100644
--- a/sim/arm/communicate.c
+++ b/sim/arm/communicate.c
@@ -83,7 +83,7 @@ retry:
return -1;
fprintf (stderr, "Waiting for connection from debugger...");
debugsock = accept (sockethandle, &isa, &i);
- if (debugsock < 0)
+ if (debugsock == -1)
{ /* Now we are in serious trouble... */
perror ("accept");
return -1;
@@ -138,7 +138,7 @@ retry:
return -1;
fprintf (stderr, "Waiting for connection from debugger...");
debugsock = accept (sockethandle, &isa, &i);
- if (debugsock < 0)
+ if (debugsock == -1)
{ /* Now we are in serious trouble... */
perror ("accept");
return -1;