Wireshark-commits: [Wireshark-commits] rev 35589: /trunk/epan/ /trunk/epan/: in_cksum.c
Date: Wed, 19 Jan 2011 22:53:40 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=35589

User: sfisher
Date: 2011/01/19 02:53 PM

Log:
 Change the ADDCARRY(x) macro to eliminate clang warning about unused
 result from the ADDCARRY portion of the REDUCE macro.
 
 -#define ADDCARRY(x)  (x > 65535 ? x -= 65535 : x)
 +#define ADDCARRY(x)  {if ((x) > 65535) (x) -= 65535;}
 
 The new code is from in_cksum.c in the Tahoe/CGI port of 4.4BSD-Lite2 (we're
 using the "Portable Version" copy otherwise).

Directory: /trunk/epan/
  Changes    Path          Action
  +1 -1      in_cksum.c    Modified