]> git.ozlabs.org Git - ccan/commit
typesafe: fix warnings with gcc's -Wpointer-arith
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 21 Mar 2011 10:31:35 +0000 (21:01 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 21 Mar 2011 10:31:35 +0000 (21:01 +1030)
commit3d27344a5dc4b56197533876a8f5f4a78406c829
tree1f69b73e63082a6e362d07ac7555b00ccc5f304b
parentf367a1dc8573db0a1f6f49fcda474eb51c192241
typesafe: fix warnings with gcc's -Wpointer-arith

In particular, avoid doing arithmetic on NULL; decay the function to a
pointer using a trinary conditional instead.
ccan/typesafe_cb/typesafe_cb.h