summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-07-24 08:28:33 +0000
committerache <ache@FreeBSD.org>1998-07-24 08:28:33 +0000
commit1bbb61bc9b660eceb343098fc915b172d99c9f10 (patch)
tree20f2b0601fb7d10e99bdc0a04055b4e2cebbee1c /usr.sbin/inetd
parent42571197008f6a841e0dca0d38cde8c8798984bb (diff)
downloadFreeBSD-src-1bbb61bc9b660eceb343098fc915b172d99c9f10.zip
FreeBSD-src-1bbb61bc9b660eceb343098fc915b172d99c9f10.tar.gz
Add (struct timezone *) cast to NULL for K&R
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r--usr.sbin/inetd/inetd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index a8444e8..1ebbd30 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)from: inetd.c 8.4 (Berkeley) 4/13/94";
#endif
static const char rcsid[] =
- "$Id: inetd.c,v 1.36 1998/07/22 14:24:12 phk Exp $";
+ "$Id: inetd.c,v 1.37 1998/07/23 20:05:02 ache Exp $";
#endif /* not lint */
/*
@@ -492,11 +492,11 @@ main(argc, argv, envp)
dofork = (sep->se_bi == 0 || sep->se_bi->bi_fork);
if (dofork) {
if (sep->se_count++ == 0)
- (void)gettimeofday(&sep->se_time, NULL);
+ (void)gettimeofday(&sep->se_time, (struct timezone *)NULL);
else if (sep->se_count >= toomany) {
struct timeval now;
- (void)gettimeofday(&now, NULL);
+ (void)gettimeofday(&now, (struct timezone *)NULL);
if (now.tv_sec - sep->se_time.tv_sec >
CNT_INTVL) {
sep->se_time = now;
@@ -1641,7 +1641,7 @@ machtime()
{
struct timeval tv;
- if (gettimeofday(&tv, NULL) < 0) {
+ if (gettimeofday(&tv, (struct timezone *)NULL) < 0) {
if (debug)
warnx("unable to get time of day");
return (0L);
OpenPOWER on IntegriCloud