summaryrefslogtreecommitdiff
path: root/include/apr_ring.h
diff options
context:
space:
mode:
authorBojan Smojver <bojan@apache.org>2008-06-02 00:12:00 +0000
committerBojan Smojver <bojan@apache.org>2008-06-02 00:12:00 +0000
commita34d2e61db74fcce19fc3cb206002b0913ca59e0 (patch)
treead879d3a176b2853058486f9a5b02051dc3e0e61 /include/apr_ring.h
parentb13ebcb1cfab048ec796864d2c52d7bdc9061bd5 (diff)
downloadapr-a34d2e61db74fcce19fc3cb206002b0913ca59e0.tar.gz
Silence GCC strict aliasing warning.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@662299 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_ring.h')
-rw-r--r--include/apr_ring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/apr_ring.h b/include/apr_ring.h
index 867f47a59..935b07fc5 100644
--- a/include/apr_ring.h
+++ b/include/apr_ring.h
@@ -157,7 +157,7 @@
* @param link The name of the APR_RING_ENTRY in the element struct
*/
#define APR_RING_SENTINEL(hp, elem, link) \
- (struct elem *)((char *)(hp) - APR_OFFSETOF(struct elem, link))
+ (struct elem *)((char *)(&(hp)->next) - APR_OFFSETOF(struct elem, link))
/**
* The first element of the ring