From owner-freebsd-chat Sun Jul 22 3:39:16 2001 Delivered-To: freebsd-chat@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id F0FD537B405 for ; Sun, 22 Jul 2001 03:39:12 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id MAA24740; Sun, 22 Jul 2001 12:39:06 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Damien Tougas Cc: chat@FreeBSD.ORG Subject: Re: C newbie needs help with kqueue References: <2042320000.995728574@sprig.tougas.net> <2203180000.995764168@sprig.tougas.net> From: Dag-Erling Smorgrav Date: 22 Jul 2001 12:39:06 +0200 In-Reply-To: <2203180000.995764168@sprig.tougas.net> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Damien Tougas writes: > Hey, thanks, I'm not sure how long it would have taken me to figure > that one out. I'm surprised you din't catch it - you did the right thing a few lines earlier with fopen()... but I guess the moral of the story is to always compile with as many warnings enabled as practical. If you're using BSD-style Makefiles, try setting WARNS?=2 and fixing all the warnings that crop up (some may be non-obvious to fix - feel free to ask for help). DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message