svn commit: r303889 - head/lib/libc/rpc
Pedro F. Giffuni
pfg at FreeBSD.org
Tue Aug 9 19:20:55 UTC 2016
Author: pfg
Date: Tue Aug 9 19:20:53 2016
New Revision: 303889
URL: https://svnweb.freebsd.org/changeset/base/303889
Log:
libc/rpc: replace comma with semicolon when pertinent.
Uses of commas instead of a semicolons can easily go undetected. The comma
can serve as a statement separator but this shouldn't be abused when
statements are meant to be standalone.
Detected with devel/coccinelle following a hint from DragonFlyBSD.
MFC after: 1 month
Modified:
head/lib/libc/rpc/svc_vc.c
Modified: head/lib/libc/rpc/svc_vc.c
==============================================================================
--- head/lib/libc/rpc/svc_vc.c Tue Aug 9 19:20:53 2016 (r303888)
+++ head/lib/libc/rpc/svc_vc.c Tue Aug 9 19:20:53 2016 (r303889)
@@ -700,7 +700,7 @@ svc_vc_rendezvous_ops(SVCXPRT *xprt)
ops.xp_reply =
(bool_t (*)(SVCXPRT *, struct rpc_msg *))abort;
ops.xp_freeargs =
- (bool_t (*)(SVCXPRT *, xdrproc_t, void *))abort,
+ (bool_t (*)(SVCXPRT *, xdrproc_t, void *))abort;
ops.xp_destroy = svc_vc_destroy;
ops2.xp_control = svc_vc_rendezvous_control;
}
More information about the svn-src-head
mailing list