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