From: Robbie Harwood Date: Tue, 18 Sep 2018 18:19:55 +0000 (-0400) Subject: Fix misleading indentation in clnt_udp.c X-Git-Tag: krb5-1.17-beta1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20b2a9980e6f2d62875502dfb5c3cb64e17df41b;p=thirdparty%2Fkrb5.git 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. --- 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;