From owner-cvs-lib Thu Apr 30 20:23:32 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA15273 for cvs-lib-outgoing; Thu, 30 Apr 1998 20:23:32 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA15163; Thu, 30 Apr 1998 20:23:02 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id NAA29322; Fri, 1 May 1998 13:17:29 +1000 Date: Fri, 1 May 1998 13:17:29 +1000 From: Bruce Evans Message-Id: <199805010317.NAA29322@godzilla.zeta.org.au> To: brian@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen syslog.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Modified files: > lib/libc/gen syslog.c > Log: > connect() returns -1 on error - not 0. Strangely enough, the code already tested for connect() returning -1 on error. -1/other is converted to the boolean variable `connected'. The change seems to amount to an obfuscation if this variable (`true' changed from 1 to 0 and `false' changed from 0 to -1). Bruce