summaryrefslogtreecommitdiff
path: root/dso
diff options
context:
space:
mode:
authorgregames <gregames@13f79535-47bb-0310-9956-ffa450edef68>2000-08-31 20:23:08 +0000
committergregames <gregames@13f79535-47bb-0310-9956-ffa450edef68>2000-08-31 20:23:08 +0000
commit29718217048ebf0d95f21088cb8cadb3fe749e77 (patch)
treec8aa49933cac726f2d1d88eec9548891d1192ed6 /dso
parent8a82c43f0b40a62352ec338fb709cf35fb62fe1b (diff)
downloadlibapr-29718217048ebf0d95f21088cb8cadb3fe749e77.tar.gz
Switch the order of the dllqueryxxx calls. dllqueryvar is the only one
used today (to locate an Apache dso module's module structure), so put it first. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60516 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-rw-r--r--dso/os390/dso.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dso/os390/dso.c b/dso/os390/dso.c
index 6b491a75a..c9806dcb9 100644
--- a/dso/os390/dso.c
+++ b/dso/os390/dso.c
@@ -107,14 +107,14 @@ apr_status_t apr_dso_sym(apr_dso_handle_sym_t *ressym,
void *func_ptr;
void *var_ptr;
- if ((func_ptr = (void *)dllqueryfn(handle->handle, symname)) != NULL) {
- *ressym = func_ptr;
- return APR_SUCCESS;
- }
if ((var_ptr = dllqueryvar(handle->handle, symname)) != NULL) {
*ressym = var_ptr;
return APR_SUCCESS;
}
+ if ((func_ptr = (void *)dllqueryfn(handle->handle, symname)) != NULL) {
+ *ressym = func_ptr;
+ return APR_SUCCESS;
+ }
handle->failing_errno = errno;
return errno;
}