New indentation

Initial
Stephane Bortzmeyer 22 years ago
parent 8068b79435
commit be81c70d60

@ -681,16 +681,19 @@ main (argc, argv)
} }
else else
{ {
if (tcp) { if (tcp)
(void) gettimeofday (&connectedtv, (struct timezone *) NULL); {
temp = connectedtv; (void) gettimeofday (&connectedtv,
tvsub (&temp, &conntv); (struct timezone *) NULL);
if (verbose) { temp = connectedtv;
printf ("Connected...\n"); tvsub (&temp, &conntv);
printf ("TCP Latency: %d.%06d seconds\n", (int) temp.tv_sec, if (verbose)
(int) temp.tv_usec); {
printf ("Connected...\n");
printf ("TCP Latency: %d.%06d seconds\n",
(int) temp.tv_sec, (int) temp.tv_usec);
}
} }
}
} }
if (verbose && tcp) if (verbose && tcp)
@ -833,33 +836,34 @@ main (argc, argv)
} }
} }
if (tcp && !discard) { if (tcp && !discard)
fd_set mask; {
int n = 0; fd_set mask;
int n = 0;
FD_ZERO (&mask); FD_ZERO (&mask);
if (!(http && ssl)) if (!(http && ssl))
n = fileno (files); n = fileno (files);
#ifdef OPENSSL #ifdef OPENSSL
else else
{ {
n = SSL_get_fd (sslh); n = SSL_get_fd (sslh);
} }
#endif #endif
FD_SET (n, &mask); FD_SET (n, &mask);
if (select (n + 1, &mask, 0, 0, NULL) > 0) if (select (n + 1, &mask, 0, 0, NULL) > 0)
{ {
(void) gettimeofday (&recvtv, (struct timezone *) NULL); (void) gettimeofday (&recvtv, (struct timezone *) NULL);
temp = recvtv; temp = recvtv;
tvsub (&temp, &sendtv); tvsub (&temp, &sendtv);
if (verbose) if (verbose)
printf ("Application Latency: %d.%06d seconds\n", printf ("Application Latency: %d.%06d seconds\n",
(int) temp.tv_sec, (int) temp.tv_usec); (int) temp.tv_sec, (int) temp.tv_usec);
} }
} }
if ((port_to_use == USE_ECHO) || (port_to_use == USE_CHARGEN) || if ((port_to_use == USE_ECHO) || (port_to_use == USE_CHARGEN) ||
(port_to_use == USE_HTTP) || (port_to_use == USE_ICP) || (port_to_use == USE_HTTP) || (port_to_use == USE_ICP) ||
@ -867,14 +871,15 @@ main (argc, argv)
{ {
if (!udp) if (!udp)
{ {
if (!http && !smtp && !discard) if (!http && !smtp && !discard)
{ {
/* Read from the server */ /* Read from the server */
nr = readline (files, recvline, n, stop_at_newlines); nr = readline (files, recvline, n, stop_at_newlines);
} }
else if (discard) { else if (discard)
/* No reply, no read */ {
} /* No reply, no read */
}
#ifdef HTTP #ifdef HTTP
else if (http) else if (http)
{ {

Loading…
Cancel
Save