diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-28 05:54:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-28 05:54:42 +0000 |
commit | b85823649b3ebc5fff3ef5b567849aeb2c424d22 (patch) | |
tree | 0cdbc337733155d34cdee738b8898c5672c35143 | |
parent | 0c712494a144b27a880799b0cd79be293f092185 (diff) |
arthur (in)dent
-rw-r--r-- | usr.sbin/inetd/inetd.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index b3963bc1f79..d314f73930d 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inetd.c,v 1.7 1996/07/28 05:13:19 joshd Exp $ */ +/* $OpenBSD: inetd.c,v 1.8 1996/07/28 05:54:41 deraadt Exp $ */ /* $NetBSD: inetd.c,v 1.11 1996/02/22 11:14:41 mycroft Exp $ */ /* * Copyright (c) 1983,1991 The Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)inetd.c 5.30 (Berkeley) 6/3/91";*/ -static char rcsid[] = "$OpenBSD: inetd.c,v 1.7 1996/07/28 05:13:19 joshd Exp $"; +static char rcsid[] = "$OpenBSD: inetd.c,v 1.8 1996/07/28 05:54:41 deraadt Exp $"; #endif /* not lint */ /* @@ -382,13 +382,14 @@ main(argc, argv, envp) continue; } plen = sizeof(peer); - if (getpeername(ctrl, (struct sockaddr *)&peer, &plen) < 0) - { syslog(LOG_WARNING, "could not getpeername"); + if (getpeername(ctrl, (struct sockaddr *)&peer, + &plen) < 0) { + syslog(LOG_WARNING, "could not getpeername"); continue; } - if (ntohs(peer.sin_port) == 20) - { syslog(LOG_INFO, "Connect to %s from port %d", - sep->se_service, ntohs(peer.sin_port)); + if (ntohs(peer.sin_port) == 20) { + syslog(LOG_INFO, "Connect to %s from port %d", + sep->se_service, ntohs(peer.sin_port)); continue; } } else |