diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-22 11:36:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-22 11:36:02 +0000 |
commit | 806021be093ad00ce2022a532c0f4cc99b0065ac (patch) | |
tree | c4f374fc66dbd93cdd093f4e1213808e855c8b39 /lib/libutil/logout.c | |
parent | 200dde568cd8db5fa9ddc42e6b5388df55a16573 (diff) |
libutil
Diffstat (limited to 'lib/libutil/logout.c')
-rw-r--r-- | lib/libutil/logout.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libutil/logout.c b/lib/libutil/logout.c index ed24dbcd153..a3e34793c01 100644 --- a/lib/libutil/logout.c +++ b/lib/libutil/logout.c @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /* from: static char sccsid[] = "@(#)logout.c 8.1 (Berkeley) 6/4/93"; */ -static char *rcsid = "$Id: logout.c,v 1.1 1995/10/18 08:43:13 deraadt Exp $"; +static char *rcsid = "$Id: logout.c,v 1.2 1996/05/22 11:35:07 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -44,16 +44,16 @@ static char *rcsid = "$Id: logout.c,v 1.1 1995/10/18 08:43:13 deraadt Exp $"; #include <unistd.h> #include <stdlib.h> #include <string.h> +#include <util.h> typedef struct utmp UTMP; int logout(line) - register char *line; + const char *line; { - register int fd; + int fd, rval; UTMP ut; - int rval; if ((fd = open(_PATH_UTMP, O_RDWR, 0)) < 0) return(0); |