altstack: Don't use 0 pointer literals
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 3 Jun 2016 08:42:02 +0000 (18:42 +1000)
committerDan Good <dan@dancancode.com>
Thu, 16 Jun 2016 20:18:52 +0000 (20:18 +0000)
commit9683a45fa7f03e497fa4ae53c70730bc96fd28da
treecbeb336ed416a026e3af89faac5affb26ee198c2
parent029a45b84fe60f8012dc1c740709db2c2e620d38
altstack: Don't use 0 pointer literals

In a number of places the altstack module uses a literal '0' for pointer
values.  That's correct C, but doesn't make it obvious on a quick read
whether values are integers or pointers.  This patch changes those cases
to use the NULL define instead.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/altstack/_info
ccan/altstack/altstack.c
ccan/altstack/altstack.h
ccan/altstack/test/run.c