X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Farm%2Fmain.c;h=b63b3710b09451d0ba89bc6ac8163bb34c512637;hb=00923338dec84505addaf9cdeca2e9c844757824;hp=c7992908b4400a0adea3158c8a18253a8445dc85;hpb=72ec28b8afa357cdde70c612b4e0e9f37a34f8e4;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/arm/main.c b/sim/arm/main.c index c7992908b4..b63b3710b0 100644 --- a/sim/arm/main.c +++ b/sim/arm/main.c @@ -3,7 +3,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + along with this program; if not, see . */ /**********************************************************************/ /* Forks the ARMulator and hangs on a socket passing on RDP messages */ @@ -117,7 +116,7 @@ main (int argc, char *argv[]) /* Open a socket */ sockethandle = socket (hp->h_addrtype, SOCK_STREAM, 0); - if (sockethandle < 0) + if (sockethandle == -1) { perror ("socket"); return 1; @@ -147,7 +146,7 @@ main (int argc, char *argv[]) fprintf (stderr, "Waiting for connection from debugger..."); debugsock = accept (sockethandle, &isa, &i); - if (debugsock < 0) + if (debugsock == -1) { perror ("accept"); return 1;