From 20b2a9980e6f2d62875502dfb5c3cb64e17df41b Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Tue, 18 Sep 2018 14:19:55 -0400 Subject: [PATCH] Fix misleading indentation in clnt_udp.c gcc warns that the `if` statement doesn't guard the length assignment, which is true. However, it wouldn't make sense for the length assignment to be guarded by the `if` clause anyway, since the previous statement is a `goto`. De-indent for clarity. --- src/lib/rpc/clnt_udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/rpc/clnt_udp.c b/src/lib/rpc/clnt_udp.c index 3d7a459d1f..49b09e051b 100644 --- a/src/lib/rpc/clnt_udp.c +++ b/src/lib/rpc/clnt_udp.c @@ -196,7 +196,7 @@ clntudp_bufcreate( } if (connect(*sockp, (struct sockaddr *)raddr, sizeof(*raddr)) < 0) goto fooy; - cu->cu_llen = sizeof(cu->cu_laddr); + cu->cu_llen = sizeof(cu->cu_laddr); if (getsockname(*sockp, (struct sockaddr *)&cu->cu_laddr, &cu->cu_llen) < 0) goto fooy; -- 2.47.2