Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 1998 17:29:12 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        ache@FreeBSD.ORG, cvs-committers@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.sbin/inetd inetd.c
Message-ID:  <199807240729.RAA14650@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  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



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