diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2010-09-23 11:34:51 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2010-09-23 11:34:51 +0000 |
commit | 02b5813eed38623060bec9f56db4e793c9d3b0f2 (patch) | |
tree | 6ac2637f10358ef471416137511400f75452f065 | |
parent | 4d5d397e262babf8a3888314f1ca92a25bfb2f29 (diff) |
fix indentation to not confusingly align with an unassociated while() statement
ok claudio@
-rw-r--r-- | sys/net/if_gre.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index aa0c8319113..2ce6b600160 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gre.c,v 1.51 2010/07/03 04:44:51 guenther Exp $ */ +/* $OpenBSD: if_gre.c,v 1.52 2010/09/23 11:34:50 blambert Exp $ */ /* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -736,20 +736,20 @@ gre_in_cksum(u_int16_t *p, u_int len) while (nwords-- != 0) sum += *p++; - if (len & 1) { - union { - u_short w; - u_char c[2]; - } u; - u.c[0] = *(u_char *) p; - u.c[1] = 0; - sum += u.w; - } + if (len & 1) { + union { + u_short w; + u_char c[2]; + } u; + u.c[0] = *(u_char *) p; + u.c[1] = 0; + sum += u.w; + } - /* end-around-carry */ - sum = (sum >> 16) + (sum & 0xffff); - sum += (sum >> 16); - return (~sum); + /* end-around-carry */ + sum = (sum >> 16) + (sum & 0xffff); + sum += (sum >> 16); + return (~sum); } void |