Date: Sat, 3 Dec 2016 19:03:25 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r309503 - in stable/10/sys: rpc xdr Message-ID: <201612031903.uB3J3P1e057594@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Sat Dec 3 19:03:25 2016 New Revision: 309503 URL: https://svnweb.freebsd.org/changeset/base/309503 Log: MFC r297975: r297975 (by pfg): RPC: for pointers replace 0 with NULL. These are mostly cosmetical, no functional change. Found with devel/coccinelle. Modified: stable/10/sys/rpc/svc_vc.c stable/10/sys/xdr/xdr_mem.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/rpc/svc_vc.c ============================================================================== --- stable/10/sys/rpc/svc_vc.c Sat Dec 3 18:56:28 2016 (r309502) +++ stable/10/sys/rpc/svc_vc.c Sat Dec 3 19:03:25 2016 (r309503) @@ -414,7 +414,7 @@ svc_vc_rendezvous_recv(SVCXPRT *xprt, st sx_xunlock(&xprt->xp_lock); - sa = 0; + sa = NULL; error = soaccept(so, &sa); if (error) { Modified: stable/10/sys/xdr/xdr_mem.c ============================================================================== --- stable/10/sys/xdr/xdr_mem.c Sat Dec 3 18:56:28 2016 (r309502) +++ stable/10/sys/xdr/xdr_mem.c Sat Dec 3 19:03:25 2016 (r309503) @@ -214,7 +214,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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612031903.uB3J3P1e057594>