1234567891011121314151617 |
- --- traceroute-2.0.19.orig/traceroute/csum.c 2007-07-19 16:47:55.000000000 +0200
- +++ traceroute-2.0.19/traceroute/csum.c 2013-12-29 20:01:35.000000000 +0100
- @@ -12,11 +12,11 @@
- #include "traceroute.h"
-
-
- -u_int16_t in_csum (const void *ptr, size_t len) {
- - const u_int16_t *p = (const u_int16_t *) ptr;
- +uint16_t in_csum (const void *ptr, size_t len) {
- + const uint16_t *p = (const uint16_t *) ptr;
- size_t nw = len / 2;
- unsigned int sum = 0;
- - u_int16_t res;
- + uint16_t res;
-
- while (nw--) sum += *p++;
-
|