summaryrefslogtreecommitdiff
path: root/package/traceroute/patches/patch-traceroute_csum_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/traceroute/patches/patch-traceroute_csum_c')
-rw-r--r--package/traceroute/patches/patch-traceroute_csum_c17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/traceroute/patches/patch-traceroute_csum_c b/package/traceroute/patches/patch-traceroute_csum_c
new file mode 100644
index 000000000..8332de5e4
--- /dev/null
+++ b/package/traceroute/patches/patch-traceroute_csum_c
@@ -0,0 +1,17 @@
+--- 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++;
+