diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-12-10 16:19:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-12-10 16:19:30 +0000 |
commit | 6d37d6515a684f9e9d3669cf968f468baf792f85 (patch) | |
tree | 2fd5caef2a2c72684c02c8c206a65fd1f34280d4 /usr.sbin/inetd/inetd.c | |
parent | 913ba73b82f082b76a85718e032462e0a6fba568 (diff) |
indent
Diffstat (limited to 'usr.sbin/inetd/inetd.c')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index b6c51628c2f..91a97a9f00a 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inetd.c,v 1.58 1999/12/10 10:28:40 deraadt Exp $ */ +/* $OpenBSD: inetd.c,v 1.59 1999/12/10 16:19:29 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.58 1999/12/10 10:28:40 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: inetd.c,v 1.59 1999/12/10 16:19:29 deraadt Exp $"; #endif /* not lint */ /* @@ -1107,21 +1107,17 @@ matchconf (old, new) * is sufficient. */ - if ((old->se_family == AF_INET) && - (new->se_family == AF_INET) && - (bcmp(&old->se_ctrladdr_in.sin_addr, - &new->se_ctrladdr_in.sin_addr, - sizeof(new->se_ctrladdr_in.sin_addr)) != 0)) { - return (0); - } + if (old->se_family == AF_INET && new->se_family == AF_INET && + bcmp(&old->se_ctrladdr_in.sin_addr, + &new->se_ctrladdr_in.sin_addr, + sizeof(new->se_ctrladdr_in.sin_addr)) != 0) + return (0); - if ((old->se_family == AF_INET6) && - (new->se_family == AF_INET6) && - (bcmp(&old->se_ctrladdr_in6.sin6_addr, - &new->se_ctrladdr_in6.sin6_addr, - sizeof(new->se_ctrladdr_in6.sin6_addr)) != 0)) { - return (0); - } + if (old->se_family == AF_INET6 && new->se_family == AF_INET6 && + bcmp(&old->se_ctrladdr_in6.sin6_addr, + &new->se_ctrladdr_in6.sin6_addr, + sizeof(new->se_ctrladdr_in6.sin6_addr)) != 0) + return (0); return (1); } |