]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r297790:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 3 Dec 2016 17:17:42 +0000 (17:17 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 3 Dec 2016 17:17:42 +0000 (17:17 +0000)
commitbcf0f56e13bdd30500b314a313f372558383e68e
tree4090ad0dc9bdc4f6d8760d071cac4a3cb7f3b346
parent5923e56ccbfb17adfc1a9b492bc3cf336136f524
MFC r297790:
r297790 (by pfg):

libc: replace 0 with NULL for pointers.

While here also cleanup some surrounding code; particularly
drop some malloc() casts.

Found with devel/coccinelle.

git-svn-id: svn://svn.freebsd.org/base/stable/10@309485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
22 files changed:
lib/libc/db/hash/hash.c
lib/libc/db/hash/hash_buf.c
lib/libc/gen/err.c
lib/libc/gen/getmntinfo.c
lib/libc/gen/opendir.c
lib/libc/gen/tls.c
lib/libc/locale/xlocale_private.h
lib/libc/net/base64.c
lib/libc/net/getifaddrs.c
lib/libc/net/getservent.c
lib/libc/net/rcmd.c
lib/libc/posix1e/acl_support_nfs4.c
lib/libc/resolv/mtctxres.c
lib/libc/resolv/res_init.c
lib/libc/resolv/res_mkupdate.c
lib/libc/rpc/auth_none.c
lib/libc/rpc/clnt_perror.c
lib/libc/rpc/mt_misc.c
lib/libc/rpc/rpcdname.c
lib/libc/softfloat/timesoftfloat.c
lib/libc/uuid/uuid_to_string.c
lib/libc/xdr/xdr_mem.c