Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 4303] Optimize wireshark

Date: Mon, 22 Feb 2010 22:41:39 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4303

--- Comment #8 from Anders Broman <anders.broman@xxxxxxxxxxxx> 2010-02-22 22:41:29 PST ---
Hi,
It does not compile with MSVC:
to_str.c(96) : error C2220: warning treated as error - no 'object' file
generate
d
to_str.c(96) : warning C4244: 'function' : conversion from 'guint16' to
'guint8'
, possible loss of data
to_str.c(249) : error C2133: 'fast_strings' : unknown size
NMAKE : fatal error U1077: '"c:\Program\Microsoft Visual Studio
9.0\VC\BIN\cl.EX
E"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program\Microsoft Visual Studio
9.0\VC\BIN\nmake
.exe"' : return code '0x2'
Stop.

In
static inline char *
word_to_hex(char *out, guint16 octet) {
  out = byte_to_hex(out, octet >> 8);
  out = byte_to_hex(out, octet);
  return out;
}
Please change octet to word.
in the next function octet to dword etc.
Regards
Anders

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.