breakpoints/19546: Fix crash after updating breakpoints
[deliverable/binutils-gdb.git] / sim / m32c / main.c
index c33824364f27506465b6311ce813a9f6b9a37be5..d7d1d931d3fff30f67c997e8ec906343f2f00607 100644 (file)
@@ -1,6 +1,6 @@
 /* main.c --- main function for stand-alone M32C simulator.
 
-Copyright (C) 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
+Copyright (C) 2005-2016 Free Software Foundation, Inc.
 Contributed by Red Hat, Inc.
 
 This file is part of the GNU simulators.
@@ -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);
This page took 0.025757 seconds and 4 git commands to generate.