aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/xdr
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-10 19:33:58 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-10 19:33:58 +0000
commit513004a23dac3416f8f9c11aaa148bf8606c8617 (patch)
tree6796a0cd32cea8fd5591b7f2c6d10ae7f153ccb9 /lib/libc/xdr
parent6e5bbb486cf872ff289d4573cb9d08bf3178b160 (diff)
libc: replace 0 with NULL for pointers.
While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle. Reviewed by: bde (previous version - all new bugs are mine)
Notes
Notes: svn path=/head/; revision=297790
Diffstat (limited to 'lib/libc/xdr')
-rw-r--r--lib/libc/xdr/xdr_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/xdr/xdr_mem.c b/lib/libc/xdr/xdr_mem.c
index 0455a5a2a7e5..ecefb2ec38db 100644
--- a/lib/libc/xdr/xdr_mem.c
+++ b/lib/libc/xdr/xdr_mem.c
@@ -215,7 +215,7 @@ xdrmem_setpos(XDR *xdrs, u_int pos)
static int32_t *
xdrmem_inline_aligned(XDR *xdrs, u_int len)
{
- int32_t *buf = 0;
+ int32_t *buf = NULL;
if (xdrs->x_handy >= len) {
xdrs->x_handy -= len;