diff options
author | Stefan Eissing <icing@apache.org> | 2021-02-01 10:01:22 +0100 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2021-02-01 10:01:22 +0100 |
commit | a2cf280a208be0560b4f5041f8a58c05cc19195f (patch) | |
tree | a48b534e465d13e200eb1d17744292351439752f /server/mpm/simple/simple_run.c | |
parent | Update Travis LDAP testing to use a CentOS based container, pulled (diff) | |
download | apache2-a2cf280a208be0560b4f5041f8a58c05cc19195f.tar.xz apache2-a2cf280a208be0560b4f5041f8a58c05cc19195f.zip |
- fixed a clang error when dividing sizeof(T1i[]) / sizeof(T2).
these modern compilers have no respect for code from 2009.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1886096 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | server/mpm/simple/simple_run.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/mpm/simple/simple_run.c b/server/mpm/simple/simple_run.c index a61bfa66bc..102eed55e2 100644 --- a/server/mpm/simple/simple_run.c +++ b/server/mpm/simple/simple_run.c @@ -260,7 +260,7 @@ static int simple_setup_pollcb(simple_core_t * sc) apr_status_t rv; int good_methods[] = {APR_POLLSET_KQUEUE, APR_POLLSET_PORT, APR_POLLSET_EPOLL}; - for (i = 0; i < sizeof(good_methods) / sizeof(void*); i++) { + for (i = 0; i < sizeof(good_methods) / sizeof(good_methods[0]); i++) { /* pqXXXXX: make size of pollcb configrable or dynamic */ rv = apr_pollcb_create_ex(&sc->pollcb, 512, sc->pool, APR_POLLSET_NODEFAULT, good_methods[i]); |