summaryrefslogtreecommitdiff
path: root/package/traceroute/patches/patch-traceroute_csum_c
blob: 8332de5e47f9b204e8fe2083a2f2455becddbb49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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++;