diff options
Diffstat (limited to 'net/zephyr/patches/patch-as')
-rw-r--r-- | net/zephyr/patches/patch-as | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net/zephyr/patches/patch-as b/net/zephyr/patches/patch-as new file mode 100644 index 00000000000..9eeb585ee24 --- /dev/null +++ b/net/zephyr/patches/patch-as @@ -0,0 +1,33 @@ +$NetBSD: patch-as,v 1.1 1999/11/25 01:50:44 hubertf Exp $ + +diff -x *.orig -urN ./lib/zephyr/ZParseNot.c /usr/pkgsrc/net/zephyr/work.i386.unpatched/zephyr-2.0.4/lib/zephyr/ZParseNot.c +--- ./lib/zephyr/ZParseNot.c Tue Jul 18 22:28:07 1995 ++++ /usr/pkgsrc/net/zephyr/work.i386.unpatched/zephyr-2.0.4/lib/zephyr/ZParseNot.c Thu Nov 25 02:52:53 1999 +@@ -153,10 +153,10 @@ + + if (numfields) { + if (ZReadAscii(ptr, end-ptr, (unsigned char *)¬ice->z_uid, +- sizeof(ZUnique_Id_t)) == ZERR_BADFIELD) ++ sizeof(notice->z_uid)) == ZERR_BADFIELD) + BAD_PACKET; +- notice->z_time.tv_sec = ntohl((u_long) notice->z_uid.tv.tv_sec); +- notice->z_time.tv_usec = ntohl((u_long) notice->z_uid.tv.tv_usec); ++ notice->z_time.tv_sec = ntohl((u_long) notice->z_uid.zuid_sec); ++ notice->z_time.tv_usec = ntohl((u_long) notice->z_uid.zuid_usec); + numfields--; + next_field (ptr); + } +@@ -267,10 +267,10 @@ + + if (numfields) { + if (ZReadAscii(ptr, end-ptr, (unsigned char *)¬ice->z_multiuid, +- sizeof(ZUnique_Id_t)) == ZERR_BADFIELD) ++ sizeof(notice->z_multiuid)) == ZERR_BADFIELD) + BAD_PACKET; +- notice->z_time.tv_sec = ntohl((u_long) notice->z_multiuid.tv.tv_sec); +- notice->z_time.tv_usec = ntohl((u_long) notice->z_multiuid.tv.tv_usec); ++ notice->z_time.tv_sec = ntohl((u_long) notice->z_multiuid.zuid_sec); ++ notice->z_time.tv_usec = ntohl((u_long) notice->z_multiuid.zuid_usec); + numfields--; + next_field (ptr); + } |