From owner-freebsd-ports-bugs Thu Feb 6 4: 0:50 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EA7237B406 for ; Thu, 6 Feb 2003 04:00:36 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C75E43FAF for ; Thu, 6 Feb 2003 04:00:35 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h16C0ZNS069434 for ; Thu, 6 Feb 2003 04:00:35 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h16C0ZQ1069433; Thu, 6 Feb 2003 04:00:35 -0800 (PST) Date: Thu, 6 Feb 2003 04:00:35 -0800 (PST) Message-Id: <200302061200.h16C0ZQ1069433@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: "Simon 'portlint' Schubert" Subject: Re: ports/47981: new port: net/wmnetload (a network load monitor dockapp) Reply-To: "Simon 'portlint' Schubert" Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/47981; it has been noted by GNATS. From: "Simon 'portlint' Schubert" To: Hendrik Scholz Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: ports/47981: new port: net/wmnetload (a network load monitor dockapp) Date: Thu, 6 Feb 2003 12:54:50 +0100 --=.aGQ_rkESbOfCW= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Lately Hendrik Scholz told: > Xdiff -urP wmnetload-1.2.orig/src/ifstat_freebsd.c wmnetload-1.2/src/ifstat_freebsd.c [...] > X+ifstatstate_t * if_statinit(void) > X+{ > X+ ifstatstate_t *statep; > X+ > X+ int num_iface, len; > X+ int name[6]; > X+ struct ifmibdata ifmd; name, ifmd unused variables. > X+ > X+ statep = malloc(sizeof (ifstatstate_t)); > X+ if (statep == NULL) > X+ { > X+ warn("cannot allocate interface statistics state"); > X+ return (NULL); > X+ } > X+ len = sizeof(num_iface); > X+ sysctlbyname("net.link.generic.system.ifcount", &num_iface, &len, NULL, 0); > X+ statep->num = num_iface; > X+ > X+ return statep; > X+} cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.aGQ_rkESbOfCW= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Qk0Pr5S+dk6z85oRAvBmAJ4jgWs+tfhkaGiOVg3uFe7c7odFEQCg+xzA +E0mCfliEQGdQ4LtPmRWVj4= =Z4lj -----END PGP SIGNATURE----- --=.aGQ_rkESbOfCW=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message