Use container_of() to get main struct from node
authorMarko Kreen <markokr@gmail.com>
Thu, 12 Apr 2012 11:46:12 +0000 (14:46 +0300)
committerMarko Kreen <markokr@gmail.com>
Thu, 12 Apr 2012 11:46:12 +0000 (14:46 +0300)
commit2ac0ba79ac384931c12f982751ae370fb0907c7b
treee27ef8b243d1559faff0030a7245c3627a82758d
parent88bd709b5041f1215ac7644408b2b540a3b7b582
Use container_of() to get main struct from node

Direct casts hardwire the assumption that node
is always first member of struct.
src/cluster.c
src/plproxy.h