summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-07-23 20:05:02 +0000
committerache <ache@FreeBSD.org>1998-07-23 20:05:02 +0000
commit5b6f7049f1d88502a7f525ad2111dc54bc0c5aa3 (patch)
tree7c93a408815ddc1f1e969e6586d5c0c8912f0179 /usr.sbin/inetd
parent9b9e03a220ec19ceb98ea50d90f27e54c4599db5 (diff)
downloadFreeBSD-src-5b6f7049f1d88502a7f525ad2111dc54bc0c5aa3.zip
FreeBSD-src-5b6f7049f1d88502a7f525ad2111dc54bc0c5aa3.tar.gz
Use NULL as gettimeofday arg instead of 0 cast
Add missing arg to error diagnostic Print yet one arg of error diagnostic
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r--usr.sbin/inetd/inetd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index f56b493..a8444e8 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.35 1998/07/22 05:53:53 phk Exp $";
+ "$Id: inetd.c,v 1.36 1998/07/22 14:24:12 phk Exp $";
#endif /* not lint */
/*
@@ -492,12 +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,
- (struct timezone *)0);
+ (void)gettimeofday(&sep->se_time, NULL);
else if (sep->se_count >= toomany) {
struct timeval now;
- (void)gettimeofday(&now, (struct timezone *)0);
+ (void)gettimeofday(&now, NULL);
if (now.tv_sec - sep->se_time.tv_sec >
CNT_INTVL) {
sep->se_time = now;
@@ -587,7 +586,8 @@ main(argc, argv, envp)
/* error syslogged by getclass */
syslog(LOG_ERR,
"%s/%s: %s: login class error",
- sep->se_service, sep->se_proto);
+ sep->se_service, sep->se_proto,
+ sep->se_class);
if (sep->se_socktype != SOCK_STREAM)
recv(0, buf, sizeof (buf), 0);
_exit(EX_NOUSER);
@@ -735,8 +735,8 @@ config(signo)
if (login_getclass(new->se_class) == NULL) {
/* error syslogged by getclass */
syslog(LOG_ERR,
- "%s/%s: login class error, service ignored",
- new->se_service, new->se_proto);
+ "%s/%s: %s: login class error, service ignored",
+ new->se_service, new->se_proto, new->se_class);
continue;
}
#endif
@@ -1641,7 +1641,7 @@ machtime()
{
struct timeval tv;
- if (gettimeofday(&tv, (struct timezone *)0) < 0) {
+ if (gettimeofday(&tv, NULL) < 0) {
if (debug)
warnx("unable to get time of day");
return (0L);
OpenPOWER on IntegriCloud