diff options
author | Eric Covener <covener@apache.org> | 2016-05-19 16:58:58 +0000 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2016-05-19 16:58:58 +0000 |
commit | a09e6e370606f636930b0075d3cd27e7cf603205 (patch) | |
tree | baf342aa4dffb722dfea6ceaeabeee602de77171 /poll | |
parent | 9c04f0db7c79b7541d534f31ce599d8d604e73d3 (diff) | |
download | apr-a09e6e370606f636930b0075d3cd27e7cf603205.tar.gz |
poll/unix/z_asio.c:271]: (style) Suspicious condition (assignment +
comparison); Clarify expression with parentheses.
PR59582
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1744600 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r-- | poll/unix/z_asio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poll/unix/z_asio.c b/poll/unix/z_asio.c index 7e0fd89a5..6537d4909 100644 --- a/poll/unix/z_asio.c +++ b/poll/unix/z_asio.c @@ -268,9 +268,9 @@ static apr_status_t asio_pollset_create(apr_pollset_t *pollset, if (flags & APR_POLLSET_THREADSAFE) { #if APR_HAS_THREADS - if (rv = apr_thread_mutex_create(&(priv->ring_lock), + if ((rv = apr_thread_mutex_create(&(priv->ring_lock), APR_THREAD_MUTEX_DEFAULT, - p) != APR_SUCCESS) { + p)) != APR_SUCCESS) { DBG1(1, "apr_thread_mutex_create returned %d\n", rv); pollset->p = NULL; return rv; |