From owner-cvs-all Fri Jul 24 00:29:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA06048 for cvs-all-outgoing; Fri, 24 Jul 1998 00:29:44 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA06021; Fri, 24 Jul 1998 00:29:36 -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 RAA14650; Fri, 24 Jul 1998 17:29:12 +1000 Date: Fri, 24 Jul 1998 17:29:12 +1000 From: Bruce Evans Message-Id: <199807240729.RAA14650@godzilla.zeta.org.au> To: ache@FreeBSD.ORG, cvs-committers@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/inetd inetd.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > Modified files: > usr.sbin/inetd inetd.c > Log: > Use NULL as gettimeofday arg instead of 0 cast Why subtract value like that? The 0 cast was necessary and sufficent for portability to K&R. NULL is only correct if the compiler is ANSI and the prototype for gettimeofday is in scope. style.9 specifies casting NULL when it is used in function args. inetd.c was sort of portabile to K&R. Portability to both K&R and ANSI was broken by subtacting value in rev.1.17 - gcc's typeof feature doesn't work in traditional mode for some reason, and of course it doesn't work in ANSI C. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message