[llvm-commits] CVS: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/echo.cpp
John Criswell
criswell at cs.uiuc.edu
Wed Aug 4 14:08:41 PDT 2004
Changes in directory llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++:
echo.cpp updated: 1.3 -> 1.4
---
Log message:
Reverted the change as llvm-gcc has a new fixincludes hack for htonl()
on Fedora Core 1.
---
Diffs of the changes: (+1 -9)
Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/echo.cpp
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/echo.cpp:1.3 llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/echo.cpp:1.4
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/echo.cpp:1.3 Tue Aug 3 14:44:53 2004
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/echo.cpp Wed Aug 4 16:08:31 2004
@@ -1,5 +1,5 @@
// -*- mode: c++ -*-
-// $Id: echo.cpp,v 1.3 2004/08/03 19:44:53 criswell Exp $
+// $Id: echo.cpp,v 1.4 2004/08/04 21:08:31 criswell Exp $
// http://www.bagley.org/~doug/shootout/
#include <stdio.h>
@@ -33,11 +33,7 @@
sysabort("server/setsockopt");
memset(&sin,0,sizeof(sin));
sin.sin_family = AF_INET;
-#if 0
sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
-#else
- sin.sin_addr.s_addr = 0x0100007f;
-#endif
sin.sin_port = 0;
if (bind(ss, (sockaddr *)&sin, sizeof(sin)) == -1)
sysabort("server/bind");
@@ -63,11 +59,7 @@
if ((sock = socket(PF_INET, SOCK_STREAM, 0)) == -1)
sysabort("client/socket");
sin.sin_family = AF_INET;
-#if 0
sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
-#else
- sin.sin_addr.s_addr = 0x0100007f;
-#endif
sin.sin_port = port;
if (connect(sock, (sockaddr *)&sin, sizeof(sin)) == -1)
sysabort("client/connect");
More information about the llvm-commits
mailing list