* replace hard coded user and mode for hping-suid option with SPECIAL_PERMS. * replace remaining of hard coded "man" with ${PKGMANDIR}. * add DESTDIR support. * merge patch-a{e,g}, both for same file. * patch to replace __sun__ with __sun for portability, pkglint(1) said. * also regen other patches with mkpatches(1).
13 lines
325 B
Text
13 lines
325 B
Text
$NetBSD: patch-ao,v 1.2 2009/02/11 08:06:18 obache Exp $
|
|
|
|
--- cksum.c.orig 2003-12-06 13:39:35.000000000 +0000
|
|
+++ cksum.c
|
|
@@ -27,7 +27,7 @@ __u16 cksum(__u16 *buf, int nbytes)
|
|
|
|
if (nbytes == 1) {
|
|
oddbyte = 0;
|
|
- *((__u16 *) &oddbyte) = *(__u16 *) buf;
|
|
+ *((__u8 *) &oddbyte) = *(__u8 *) buf;
|
|
sum += oddbyte;
|
|
}
|
|
|