diff options
author | bojan <bojan@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-03 00:07:00 +0000 |
---|---|---|
committer | bojan <bojan@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-03 00:07:00 +0000 |
commit | 6b7e52f2f18a57cbac181b4ef59598c45c6db2fd (patch) | |
tree | 2d3fa8da0a5374a42f582f96ab8b6b1dd43de463 | |
parent | f276d6627018f79ff8c36cda90fce6e22dfd43ec (diff) | |
download | libapr-6b7e52f2f18a57cbac181b4ef59598c45c6db2fd.tar.gz |
Backport r662299 from the trunk.
Silence GCC strict aliasing warning.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.3.x@662602 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | include/apr_ring.h | 2 |
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 |