summaryrefslogtreecommitdiff
path: root/test/ab_apr.c
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>1999-10-04 16:37:48 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>1999-10-04 16:37:48 +0000
commit636a5b651386b67ebf0319d23ffb6a644733c3a6 (patch)
treecc3bddffac57af165a495dc1e60091d9635ba19e /test/ab_apr.c
parent8b551a56788f93740c5afc5b52ef7ef4bdc28c43 (diff)
downloadlibapr-636a5b651386b67ebf0319d23ffb6a644733c3a6.tar.gz
First patch to re-order function parameters. This one gets the low hanging
fruit, and moves most of the result parameters to the first argument. Future patches in this series will move the rest of the result parameters to the beginning of the list, and will move the context's to the end of the list git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59259 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/ab_apr.c')
-rw-r--r--test/ab_apr.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/ab_apr.c b/test/ab_apr.c
index 8ae41bf05..ced7375d6 100644
--- a/test/ab_apr.c
+++ b/test/ab_apr.c
@@ -443,7 +443,7 @@ static void start_connect(struct connection *c)
c->cbx = 0;
c->gotheader = 0;
- if (ap_create_tcp_socket(cntxt, &c->aprsock) != APR_SUCCESS) {
+ if (ap_create_tcp_socket(&c->aprsock, cntxt) != APR_SUCCESS) {
err("Socket:");
}
if (ap_setport(c->aprsock, port) != APR_SUCCESS) {
@@ -677,18 +677,18 @@ static void test(void)
fflush(stdout);
}
- ap_make_time(cntxt, &now);
+ ap_make_time(&now, cntxt);
con = (struct connection *)malloc(concurrency * sizeof(struct connection));
memset(con, 0, concurrency * sizeof(struct connection));
stats = (struct data *)malloc(requests * sizeof(struct data));
- ap_setup_poll(cntxt, concurrency, &readbits);
+ ap_setup_poll(&readbits, cntxt, concurrency);
for (i = 0; i < concurrency; i++) {
- ap_make_time(cntxt, &con[i].start);
- ap_make_time(cntxt, &con[i].connect);
- ap_make_time(cntxt, &con[i].done);
+ ap_make_time(&con[i].start, cntxt);
+ ap_make_time(&con[i].connect, cntxt);
+ ap_make_time(&con[i].done, cntxt);
}
/* setup request */
@@ -859,7 +859,7 @@ static int open_postfile(char *pfile)
ap_fileperms_t mode;
ap_ssize_t length;
- if (ap_open(cntxt, pfile, APR_READ, mode, &postfd) != APR_SUCCESS) {
+ if (ap_open(&postfd, cntxt, pfile, APR_READ, mode) != APR_SUCCESS) {
printf("Invalid postfile name (%s)\n", pfile);
return errno;
}
@@ -893,10 +893,10 @@ int main(int argc, char **argv)
trstring = "";
tdstring = "bgcolor=white";
- ap_create_context(NULL, &cntxt);
+ ap_create_context(&cntxt, NULL);
- ap_make_time(cntxt, &start);
- ap_make_time(cntxt, &endtime);
+ ap_make_time(&start, cntxt);
+ ap_make_time(&endtime, cntxt);
optind = 1;
while (ap_getopt(cntxt, argc, argv, "n:c:t:T:p:v:kVhwx:y:z:", &c) == APR_SUCCESS) {