Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2006 20:08:34 +0100
From:      Daniel Hartmeier <daniel@benzedrine.cx>
To:        Max Laier <max@love2party.net>
Cc:        Lars Wittebrood <lars@socruel.nu>, freebsd-ports@freebsd.org
Subject:   Re: Pfstat trouble, no data in database file
Message-ID:  <20061215190834.GK6704@insomnia.benzedrine.cx>
In-Reply-To: <200612112158.14488.max@love2party.net>
References:  <302F75DC2739FB43B236373398A8C599299F@saturnus.intra.socruel.nu> <200612112110.25591.max@love2party.net> <200612112158.14488.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 11, 2006 at 09:58:08PM +0100, Max Laier wrote:

> @@ -67,10 +67,8 @@
>  
>  	/* first, find out how many queues there are */
>  	memset(&pa, 0, sizeof(pa));
> -	if (ioctl(fd, DIOCGETALTQS, &pa)) {
> -		fprintf(stderr, "ioctl: DIOCGETALTQS: %s\n", strerror(errno));
> -		return (1);
> -	}
> +	if (ioctl(fd, DIOCGETALTQS, &pa))
> +		return (0);
>  	mnr = pa.nr;
>  
>  	/* fetch each of those queues */

Fine with me. I'll include it in the next dist tarball, if you want to
put that in the ports patch for the meantime, that would be great ;)

Daniel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061215190834.GK6704>