File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
network-transport-tcp/benchmarks Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ int client(int pings) {
79
79
printf ("starting client\n" );
80
80
81
81
struct addrinfo hints , * res ;
82
- int error , client_socket ;
82
+ int error , client_socket , i ;
83
83
84
84
memset (& hints , 0 , sizeof (hints ));
85
85
hints .ai_family = PF_INET ;
@@ -102,7 +102,7 @@ int client(int pings) {
102
102
return -1 ;
103
103
}
104
104
105
- for (int i = 0 ; i < pings ; i ++ ) {
105
+ for (i = 0 ; i < pings ; i ++ ) {
106
106
double timestamp_before = timestamp ();
107
107
108
108
send (client_socket , "ping123" , 8 , 0 );
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ INCLUDES=-i${ROOT}/network-transport/src -i${ROOT}/network-transport-tcp/src
8
8
# PROF_GHC=-prof -fprof-auto
9
9
# PROF_EXE=+RTS -pa -RTS
10
10
11
- GCC =gcc -std=c99
11
+ GCC =gcc
12
12
GHC =ghc -rtsopts -XRankNTypes -XScopedTypeVariables -XDeriveDataTypeable -XCPP -XGeneralizedNewtypeDeriving -optP-include -optPcabal_macros.h
13
13
14
14
all : NewTransport.ps Indirection.ps Headers.ps
You can’t perform that action at this time.
0 commit comments