openbsd-ports/net/ns/patches/patch-indep-utils_webtrace-conv_dec_my-endian_cc
sturm 0caceb1c87 update to ns 2.26
note: this is not 64bit clean as this would require a minor rewrite of ns

from Nicolas Baldi <openbsd@softhome.net>
2003-11-01 20:05:01 +00:00

23 lines
952 B
Plaintext

$OpenBSD: patch-indep-utils_webtrace-conv_dec_my-endian_cc,v 1.2 2003/11/01 20:05:01 sturm Exp $
--- indep-utils/webtrace-conv/dec/my-endian.cc.orig 2003-02-26 17:08:50.000000000 -0500
+++ indep-utils/webtrace-conv/dec/my-endian.cc 2003-08-22 07:45:19.000000000 -0400
@@ -39,14 +39,14 @@ void ToOtherEndian(TEntry *e) {
e -> tail.status = swap2(e -> tail.status);
if (sizeof(method_t) == 2)
- e -> tail.method = swap2(e -> tail.method);
+ e -> tail.method = (method_t)swap2(e -> tail.method);
else
if (sizeof(method_t) == 4)
- e -> tail.method = rotate4(e -> tail.method);
+ e -> tail.method = (method_t)rotate4(e -> tail.method);
if (sizeof(protocol_t) == 2)
- e -> tail.protocol = swap2(e -> tail.protocol);
+ e -> tail.protocol = (protocol_t)swap2(e -> tail.protocol);
else
if (sizeof(protocol_t) == 4)
- e -> tail.protocol = rotate4(e -> tail.protocol);
+ e -> tail.protocol = (protocol_t)rotate4(e -> tail.protocol);
}