summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-10 10:41:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-12-10 10:41:04 +0000
commitec25abc9e1a456db391eb113d9fddcb1d1454419 (patch)
treeb80923fa95cc6925247ed3f570500ea3290cd9c8
parent6d5af062ef93d50785c6616573f72cad86db5530 (diff)
indent
-rw-r--r--libexec/ftpd/logutmp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/ftpd/logutmp.c b/libexec/ftpd/logutmp.c
index 11d8756bf99..d44abc94bdb 100644
--- a/libexec/ftpd/logutmp.c
+++ b/libexec/ftpd/logutmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: logutmp.c,v 1.2 1998/07/13 02:11:17 millert Exp $ */
+/* $OpenBSD: logutmp.c,v 1.3 1999/12/10 10:41:03 deraadt Exp $ */
/*
* Portions Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -68,8 +68,8 @@ login(ut)
while (getttyent() != (struct ttyent *)NULL)
topslot++;
}
- if ((topslot < 0) || ((fd < 0)
- && (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) < 0))
+ if ((topslot < 0) || ((fd < 0) &&
+ (fd = open(_PATH_UTMP, O_RDWR|O_CREAT, 0644)) < 0))
return;
/*
@@ -107,8 +107,8 @@ logout(line)
(void)lseek(fd, 0, SEEK_SET);
while (read(fd, &ut, sizeof(UTMP)) == sizeof(UTMP)) {
- if (!ut.ut_name[0]
- || strncmp(ut.ut_line, line, UT_LINESIZE))
+ if (!ut.ut_name[0] ||
+ strncmp(ut.ut_line, line, UT_LINESIZE))
continue;
bzero(ut.ut_name, UT_NAMESIZE);
bzero(ut.ut_host, UT_HOSTSIZE);