Skip to content
Browse files

Fixes a couple of minor issues

git-svn-id: svn://cherokee-project.com/benchmark@3502 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent 788f58b commit 3c2bbc0771e84f2d69ae301571e8e355c8732b65 @alobbs alobbs committed Aug 3, 2009
Showing with 10 additions and 4 deletions.
  1. +10 −4 main.c
View
14 main.c
@@ -131,9 +131,9 @@ print_error_codes (void)
printf ("\n");
return;
}
- printf (" HTTP %d: %d (%.2f%%) ",
- responses[i].http_code, responses[i].count,
- (responses[i].count / (float)request_done) * 100);
+ printf (" HTTP %d: %lu (%.2f%%) ",
+ (int)responses[i].http_code, responses[i].count,
+ ((responses[i].count / (float)request_done) * 100.0f));
}
}
@@ -182,6 +182,9 @@ cb_write_data (void *ptr, size_t size, size_t nmemb, void *stream)
{
long total;
+ UNUSED(ptr);
+ UNUSED(stream);
+
total = (size * nmemb);
tx_total += total;
return total;
@@ -192,6 +195,9 @@ cb_got_header (void *ptr, size_t size, size_t nmemb, void *stream)
{
long total;
+ UNUSED(ptr);
+ UNUSED(stream);
+
total = (size * nmemb);
return total;
}
@@ -301,7 +307,7 @@ print_help (void)
printf (APP_NAME "\n"
"Usage: cherokee-benchmark [options] <URL> [<URL>]\n\n"
" -h Print this help\n"
- " -V Print version and exit\n"make
+ " -V Print version and exit\n"
" -v Verbose\n"
" -k Use keep-alive connections\n"
" -c <NUM> Concurrency level\n"

0 comments on commit 3c2bbc0

Please sign in to comment.
Something went wrong with that request. Please try again.