updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / nettop / nettop-0.2.3-compile.diff
blob45be97367a1edfe54d83d54a280726f0bd1c41d1
1 --- nettop.c~ 2001-11-09 04:50:03.000000000 +0100
2 +++ nettop.c 2008-05-11 01:52:40.000000000 +0200
3 @@ -216,22 +216,26 @@
7 - ether.count = ether.size = (int) ether.l = (int) ether.r = 0;
8 + ether.count = ether.size = 0;
9 + ether.l = ether.r = NULL;
10 ether.type = -1;
11 for (i = 0; i < HISTORY_SIZE; i++)
12 ether.size_h[i] = 0;
14 - ip.count = ip.size = (int) ip.l = (int) ip.r = 0;
15 + ip.count = ip.size = 0;
16 + ip.l = ip.r = NULL;
17 ip.type = -1;
18 for (i = 0; i < HISTORY_SIZE; i++)
19 ip.size_h[i] = 0;
21 - tcp.count = tcp.size = (int) tcp.l = (int) tcp.r = 0;
22 + tcp.count = tcp.size = 0;
23 + tcp.l = tcp.r = NULL;
24 tcp.type = -1;
25 for (i = 0; i < HISTORY_SIZE; i++)
26 tcp.size_h[i] = 0;
28 - udp.count = udp.size = (int) udp.l = (int) udp.r = 0;
29 + udp.count = udp.size = 0;
30 + udp.l = udp.r = NULL;
31 udp.type = -1;
32 for (i = 0; i < HISTORY_SIZE; i++)
33 udp.size_h[i] = 0;
34 @@ -361,6 +365,7 @@
36 break;
37 default:
38 + break;