summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/check_icmp.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-02-23 00:28:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-02-23 00:28:07 +0000
commit33febc14d09fe7c52177c4c8d1cc5d721b18b23d (patch)
treedb62218fc7357158ad1017782d3d0db7ce950188 /usr.sbin/hoststated/check_icmp.c
parent586b3ab31e79a1839b5860ce0cd676d818af61c5 (diff)
knf
Diffstat (limited to 'usr.sbin/hoststated/check_icmp.c')
-rw-r--r--usr.sbin/hoststated/check_icmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/hoststated/check_icmp.c b/usr.sbin/hoststated/check_icmp.c
index 8dd77cdeddf..1f2bf1e71e5 100644
--- a/usr.sbin/hoststated/check_icmp.c
+++ b/usr.sbin/hoststated/check_icmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: check_icmp.c,v 1.13 2007/02/12 10:39:48 pyr Exp $ */
+/* $OpenBSD: check_icmp.c,v 1.14 2007/02/23 00:28:06 deraadt Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -356,7 +356,7 @@ in_cksum(u_short *addr, int len)
}
/* add back carry outs from top 16 bits to low 16 bits */
- sum = (sum >> 16) + (sum & 0xffff); /* add hi 16 to low 16 */
+ sum = (sum >> 16) + (sum & 0xffff); /* add hi 16 to low 16 */
sum += (sum >> 16); /* add carry */
answer = ~sum; /* truncate to 16 bits */