aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorDmitry Morozovsky <marck@FreeBSD.org>2013-09-19 14:12:59 +0000
committerDmitry Morozovsky <marck@FreeBSD.org>2013-09-19 14:12:59 +0000
commit9bf84429029ea6f313ca1004327395b46368be2b (patch)
treed3dc5239b42700ebcbc30c8e245421b9aac0e989 /net-mgmt
parent0e732275c3dfd43b8e3f62ad719a01b80c2de626 (diff)
downloadports-9bf84429029ea6f313ca1004327395b46368be2b.tar.gz
ports-9bf84429029ea6f313ca1004327395b46368be2b.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/ehnt/files/patch-ehnt__display.c55
1 files changed, 53 insertions, 2 deletions
diff --git a/net-mgmt/ehnt/files/patch-ehnt__display.c b/net-mgmt/ehnt/files/patch-ehnt__display.c
index a0af8adcd2d3..fbe0d7b8a0ca 100644
--- a/net-mgmt/ehnt/files/patch-ehnt__display.c
+++ b/net-mgmt/ehnt/files/patch-ehnt__display.c
@@ -1,8 +1,23 @@
$FreeBSD$
---- ehnt_display.c.orig Thu Oct 4 22:18:29 2001
-+++ ehnt_display.c Wed Jun 23 14:35:08 2004
+--- ehnt_display.c.orig
++++ ehnt_display.c
+@@ -22,10 +22,10 @@
+ #include "config.h"
+ #include "ehnt.h"
+
+-double ShowTopAS (double a[],char t[], int ,double);
+-double ShowTopProto (double a[], char t[], int ,double);
+-double ShowTopUdpPort (double a[],char t[], int, double);
+-double ShowTopTcpPort (double a[],char t[], int, double);
++void ShowTopAS (double a[],char t[], int ,double);
++void ShowTopProto (double a[], char t[], int ,double);
++void ShowTopUdpPort (double a[],char t[], int, double);
++void ShowTopTcpPort (double a[],char t[], int, double);
+ double GetTop (double a[], char t[]);
+ int ShowValue(char *, int, double, int, double);
+ int ShowReport(struct ehnt_stats *, struct ehnt_struct *);
@@ -110,7 +110,9 @@
ShowReportTimeHeader(stats);
@@ -47,3 +62,39 @@ $FreeBSD$
if (bytes < 1024) sprintf(str,"%4d", bytes);
else if (bytes < (1024*1024)) sprintf(str,"%4dK",(bytes/1024));
+@@ -258,7 +262,7 @@
+ return str;
+ }
+
+-double ShowTopAS (double a[],char t[], int interval, double total) {
++void ShowTopAS (double a[],char t[], int interval, double total) {
+ int i=-1,maxi=0;
+ struct protoent *p;
+
+@@ -269,7 +273,7 @@
+ ShowValue(ASN_Lookup(maxi),maxi,a[maxi],interval,total);
+ }
+
+-double ShowTopProto (double a[],char t[], int interval, double total) {
++void ShowTopProto (double a[],char t[], int interval, double total) {
+ int i=-1,maxi=0;
+ struct protoent *p;
+
+@@ -285,7 +289,7 @@
+ }
+ }
+
+-double ShowTopTcpPort (double a[],char t[], int interval, double total) {
++void ShowTopTcpPort (double a[],char t[], int interval, double total) {
+ int i=-1,maxi=0;
+ struct servent *s;
+
+@@ -301,7 +305,7 @@
+ }
+ }
+
+-double ShowTopUdpPort (double a[],char t[], int interval, double total) {
++void ShowTopUdpPort (double a[],char t[], int interval, double total) {
+ int i=-1,maxi=0;
+ struct servent *s;
+