diff options
author | marck <marck@FreeBSD.org> | 2013-09-19 22:12:59 +0800 |
---|---|---|
committer | marck <marck@FreeBSD.org> | 2013-09-19 22:12:59 +0800 |
commit | e3f5e38b7f59de2a98e716cc264462f7ce6161bb (patch) | |
tree | d3dc5239b42700ebcbc30c8e245421b9aac0e989 /net-mgmt | |
parent | a64563da692d369ebccfb48bb5ba36f1063449e5 (diff) | |
download | freebsd-ports-gnome-e3f5e38b7f59de2a98e716cc264462f7ce6161bb.tar.gz freebsd-ports-gnome-e3f5e38b7f59de2a98e716cc264462f7ce6161bb.tar.zst freebsd-ports-gnome-e3f5e38b7f59de2a98e716cc264462f7ce6161bb.zip |
More clang-only errors (actually, more uses non-void function types)
Notified by: pkg-fallout
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/ehnt/files/patch-ehnt__display.c | 55 |
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; + |