Beautify the container_of macro
authorPetri Lehtinen <petri@digip.org>
Thu, 12 Aug 2010 18:34:02 +0000 (21:34 +0300)
committerPetri Lehtinen <petri@digip.org>
Thu, 12 Aug 2010 18:34:51 +0000 (21:34 +0300)
commit519d52e2bb6a3840100a84e826d8d8ac91e2d3d8
treefafb1cd85e3d77f8775ba9c094fadb061d89a78b
parent94182a5acc7e866e2ad56a34f0c5f74db45db86e
Beautify the container_of macro

Use offsetof instead of zero pointer dereference trickery.
src/jansson_private.h