svn commit: r309503 - in stable/10/sys: rpc xdr
Ngie Cooper
ngie at FreeBSD.org
Sat Dec 3 19:03:26 UTC 2016
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;
More information about the svn-src-stable
mailing list