aboutsummaryrefslogtreecommitdiff
path: root/sim/m32c/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m32c/main.c')
-rw-r--r--sim/m32c/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/m32c/main.c b/sim/m32c/main.c
index 589a600..2f31242 100644
--- a/sim/m32c/main.c
+++ b/sim/m32c/main.c
@@ -98,7 +98,7 @@ setup_tcp_console (char *portname)
address.sin_port = htons (port);
isocket = socket (AF_INET, SOCK_STREAM, 0);
- if (isocket < 0)
+ if (isocket == -1)
{
perror ("socket");
exit (1);