diff options
author | Florian Pritz <flo@Mistral.server-speed.net> | 2009-10-13 15:01:49 +0200 |
---|---|---|
committer | Florian Pritz <flo@Mistral.server-speed.net> | 2009-10-13 15:01:49 +0200 |
commit | 8e46a5af08da75bedf65ebac5d5ae2fcf2392b0c (patch) | |
tree | 02c94b7749ddc139d9966c0c088030e9c4fd1ec7 /nettop/nettop-0.2.3-compile.diff | |
parent | da7ec6ae7b35bcf7b66068dcc8e6d0f2fd607eae (diff) | |
download | aur-packages-8e46a5af08da75bedf65ebac5d5ae2fcf2392b0c.tar.gz aur-packages-8e46a5af08da75bedf65ebac5d5ae2fcf2392b0c.tar.xz |
add nettop
Diffstat (limited to 'nettop/nettop-0.2.3-compile.diff')
-rw-r--r-- | nettop/nettop-0.2.3-compile.diff | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nettop/nettop-0.2.3-compile.diff b/nettop/nettop-0.2.3-compile.diff new file mode 100644 index 0000000..45be973 --- /dev/null +++ b/nettop/nettop-0.2.3-compile.diff @@ -0,0 +1,41 @@ +--- nettop.c~ 2001-11-09 04:50:03.000000000 +0100 ++++ nettop.c 2008-05-11 01:52:40.000000000 +0200 +@@ -216,22 +216,26 @@ + } + } + +- ether.count = ether.size = (int) ether.l = (int) ether.r = 0; ++ ether.count = ether.size = 0; ++ ether.l = ether.r = NULL; + ether.type = -1; + for (i = 0; i < HISTORY_SIZE; i++) + ether.size_h[i] = 0; + +- ip.count = ip.size = (int) ip.l = (int) ip.r = 0; ++ ip.count = ip.size = 0; ++ ip.l = ip.r = NULL; + ip.type = -1; + for (i = 0; i < HISTORY_SIZE; i++) + ip.size_h[i] = 0; + +- tcp.count = tcp.size = (int) tcp.l = (int) tcp.r = 0; ++ tcp.count = tcp.size = 0; ++ tcp.l = tcp.r = NULL; + tcp.type = -1; + for (i = 0; i < HISTORY_SIZE; i++) + tcp.size_h[i] = 0; + +- udp.count = udp.size = (int) udp.l = (int) udp.r = 0; ++ udp.count = udp.size = 0; ++ udp.l = udp.r = NULL; + udp.type = -1; + for (i = 0; i < HISTORY_SIZE; i++) + udp.size_h[i] = 0; +@@ -361,6 +365,7 @@ + } + break; + default: ++ break; + } + } + } |