Date: Sat, 21 Jul 2001 21:09:28 -0400 From: Damien Tougas <damien@carroll.com> To: Dag-Erling Smorgrav <des@ofug.org> Cc: chat@FreeBSD.ORG Subject: Re: C newbie needs help with kqueue Message-ID: <2203180000.995764168@sprig.tougas.net> In-Reply-To: <xzp3d7quwdg.fsf@flood.ping.uio.no> References: <2042320000.995728574@sprig.tougas.net> <xzp3d7quwdg.fsf@flood.ping.uio.no>
index | next in thread | previous in thread | raw e-mail
--On Saturday, July 21, 2001 17:36:59 +0200 Dag-Erling Smorgrav
<des@ofug.org> wrote:
>> if (kq = kqueue() < 0) {
>> perror("Cannot create kqueue");
>> }
>
> If you were using the right compiler options (i.e. at least -Wall),
> the compiler would warn you that the < operator has higher precedence
> than the = operator.
Hey, thanks, I'm not sure how long it would have taken me to figure that
one out.
I also appreciate the other constructive comments you made as well, I have
incorporated them into my program.
---
Damien Tougas
Systems Administrator
Carroll-Net, Inc.
http://www.carroll.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2203180000.995764168>
