diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 1999-10-04 16:37:48 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 1999-10-04 16:37:48 +0000 |
commit | 636a5b651386b67ebf0319d23ffb6a644733c3a6 (patch) | |
tree | cc3bddffac57af165a495dc1e60091d9635ba19e /test/testsock.c | |
parent | 8b551a56788f93740c5afc5b52ef7ef4bdc28c43 (diff) | |
download | libapr-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/testsock.c')
-rw-r--r-- | test/testsock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testsock.c b/test/testsock.c index aca3f38a4..6d182925c 100644 --- a/test/testsock.c +++ b/test/testsock.c @@ -75,7 +75,7 @@ int main(int argc, char *argv[]) char *args[2]; fprintf(stdout, "Creating context......."); - if (ap_create_context(NULL, &context) != APR_SUCCESS) { + if (ap_create_context(&context, NULL) != APR_SUCCESS) { fprintf(stderr, "Could not create context\n"); exit(-1); } @@ -87,8 +87,8 @@ int main(int argc, char *argv[]) fprintf(stdout, "server and client by yourself.\n"); fprintf(stdout, "Creating children to run network tests.......\n"); - s1 = ap_createprocattr_init(context, &attr1); - s2 = ap_createprocattr_init(context, &attr2); + s1 = ap_createprocattr_init(&attr1, context); + s2 = ap_createprocattr_init(&attr2, context); if (s1 != APR_SUCCESS || s2 != APR_SUCCESS) { fprintf(stderr, "Problem creating proc attrs\n"); |