openbsd-ports/net/ns/patches/patch-indep-utils_webtrace-conv_dec_my-endian_cc

23 lines
952 B
Plaintext
Raw Normal View History

$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);
}