From owner-svn-ports-head@FreeBSD.ORG Thu Oct 3 20:46:29 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AF8A9BB5; Thu, 3 Oct 2013 20:46:29 +0000 (UTC) (envelope-from marck@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9C1D92EAF; Thu, 3 Oct 2013 20:46:29 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r93KkTwp014528; Thu, 3 Oct 2013 20:46:29 GMT (envelope-from marck@svn.freebsd.org) Received: (from marck@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r93KkTUD014526; Thu, 3 Oct 2013 20:46:29 GMT (envelope-from marck@svn.freebsd.org) Message-Id: <201310032046.r93KkTUD014526@svn.freebsd.org> From: Dmitry Morozovsky Date: Thu, 3 Oct 2013 20:46:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r329228 - in head/net-mgmt/ehnt: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Oct 2013 20:46:29 -0000 Author: marck (doc committer) Date: Thu Oct 3 20:46:28 2013 New Revision: 329228 URL: http://svnweb.freebsd.org/changeset/ports/329228 Log: Chase last void functions used as int. Enable STAGE support. Tested @: ff, ref10-{i386,amd64} Modified: head/net-mgmt/ehnt/Makefile head/net-mgmt/ehnt/files/patch-ehnt__display.c Modified: head/net-mgmt/ehnt/Makefile ============================================================================== --- head/net-mgmt/ehnt/Makefile Thu Oct 3 19:34:30 2013 (r329227) +++ head/net-mgmt/ehnt/Makefile Thu Oct 3 20:46:28 2013 (r329228) @@ -19,7 +19,6 @@ PORTDOCS= README MAN1= ehnt.1 MAN8= ehntserv.8 -NO_STAGE= yes post-extract: ${TOUCH} ${WRKSRC}/asnc.txt Modified: head/net-mgmt/ehnt/files/patch-ehnt__display.c ============================================================================== --- head/net-mgmt/ehnt/files/patch-ehnt__display.c Thu Oct 3 19:34:30 2013 (r329227) +++ head/net-mgmt/ehnt/files/patch-ehnt__display.c Thu Oct 3 20:46:28 2013 (r329228) @@ -3,7 +3,7 @@ $FreeBSD$ --- ehnt_display.c.orig +++ ehnt_display.c -@@ -22,10 +22,10 @@ +@@ -22,15 +22,16 @@ #include "config.h" #include "ehnt.h" @@ -16,9 +16,18 @@ $FreeBSD$ +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 @@ +-int ShowValue(char *, int, double, int, double); +-int ShowReport(struct ehnt_stats *, struct ehnt_struct *); ++void ShowValue(char *, int, double, int, double); ++void ShowReport(struct ehnt_stats *, struct ehnt_struct *); ++void ShowReportTimeHeader(struct ehnt_stats *); + +-int ShowReport(struct ehnt_stats * stats, struct ehnt_struct * my_ehnt_struct) { ++void ShowReport(struct ehnt_stats * stats, struct ehnt_struct * my_ehnt_struct) { + struct ehnt_config * e_cfg=my_ehnt_struct->cfg; + struct ehnt_filter * e_flt=my_ehnt_struct->flt; + int report_inout=0; +@@ -110,7 +111,9 @@ ShowReportTimeHeader(stats); if ( ! report_inout ) { @@ -29,7 +38,7 @@ $FreeBSD$ if ( e_cfg->topmode != ETM_PROTO ) { printf ("Rank|-------------Source----------------| |---------------Dest----------------|\n"); } -@@ -151,8 +153,9 @@ +@@ -151,8 +154,9 @@ printf ("Rank|-------------Source----------------| |---------------Dest----------------|\n"); } printf("%s",header); @@ -41,7 +50,7 @@ $FreeBSD$ for (i=1; i<= (int)(e_cfg->screenlength - headersize)/2 + 1; i++) { printf("%2d:",i); -@@ -183,8 +186,9 @@ +@@ -183,8 +187,9 @@ } printf("\n"); } @@ -53,7 +62,7 @@ $FreeBSD$ for (i=1; i<= (int)(e_cfg->screenlength - headersize)/2; i++) { printf("%2d:",i); switch (e_cfg->topmode) { -@@ -246,7 +250,7 @@ +@@ -246,7 +251,7 @@ static char str[100]; @@ -62,7 +71,7 @@ $FreeBSD$ if (bytes < 1024) sprintf(str,"%4d", bytes); else if (bytes < (1024*1024)) sprintf(str,"%4dK",(bytes/1024)); -@@ -258,7 +262,7 @@ +@@ -258,7 +263,7 @@ return str; } @@ -71,7 +80,7 @@ $FreeBSD$ int i=-1,maxi=0; struct protoent *p; -@@ -269,7 +273,7 @@ +@@ -269,7 +274,7 @@ ShowValue(ASN_Lookup(maxi),maxi,a[maxi],interval,total); } @@ -80,7 +89,7 @@ $FreeBSD$ int i=-1,maxi=0; struct protoent *p; -@@ -285,7 +289,7 @@ +@@ -285,7 +290,7 @@ } } @@ -89,7 +98,7 @@ $FreeBSD$ int i=-1,maxi=0; struct servent *s; -@@ -301,7 +305,7 @@ +@@ -301,7 +306,7 @@ } } @@ -98,3 +107,21 @@ $FreeBSD$ int i=-1,maxi=0; struct servent *s; +@@ -336,7 +341,7 @@ + return maxi; + } + +-int ShowValue(char * name,int maxi, double val, int interval, double total) { ++void ShowValue(char * name,int maxi, double val, int interval, double total) { + float percent; + + if (maxi >= 0) percent=((val/total)*100); +@@ -351,7 +356,7 @@ + } + } + +-int ShowReportTimeHeader(struct ehnt_stats * stats) { ++void ShowReportTimeHeader(struct ehnt_stats * stats) { + struct tm *tmp_tm; + int in,h,m,s; + char * timestr;