From 447ad7b7397e76a50ea59bb3d552fd5b346a821d Mon Sep 17 00:00:00 2001 From: tedbullock Date: Mon, 22 Oct 2007 04:34:45 +0000 Subject: [PATCH] Fixed a couple compiler warnings with icc --- httperf/src/idleconn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/httperf/src/idleconn.c b/httperf/src/idleconn.c index 6bf9cf9..586c299 100755 --- a/httperf/src/idleconn.c +++ b/httperf/src/idleconn.c @@ -40,13 +40,13 @@ #include #include +#include +#include #include #include #include -#include #include -#include const char *prog_name; unsigned long num_conn, num_closed; @@ -161,14 +161,14 @@ main (int argc, char **argv) } sin = server_addr; - if (connect (sd, &sin, sizeof (sin)) < 0) + if (connect (sd, (struct sockaddr *) &sin, sizeof (sin)) < 0) { printf("connect: %s\n", strerror (errno)); switch (errno) { case ECONNREFUSED: /* wait for server to start up... */ - usleep (1000000); + sleep (1); case ETIMEDOUT: close (sd); continue;