From 6592e5f7bb44d7396d8b1767ee376fec8c9d7e9c Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 4 Sep 2000 08:13:49 +0000 Subject: Constify the arg to logout(3). It is const-safe. (cosmetic: drop some "register" qualifications too.) --- lib/libutil/libutil.h | 2 +- lib/libutil/logout.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libutil') diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h index 1bb4b9f..18fb83f 100644 --- a/lib/libutil/libutil.h +++ b/lib/libutil/libutil.h @@ -47,7 +47,7 @@ struct in_addr; __BEGIN_DECLS void login __P((struct utmp *_ut)); int login_tty __P((int _fd)); -int logout __P((char *_line)); +int logout __P((const char *_line)); void logwtmp __P((const char *_line, const char *_name, const char *_host)); void trimdomain __P((char *_fullhost, int _hostsize)); int openpty __P((int *_amaster, int *_aslave, char *_name, diff --git a/lib/libutil/logout.c b/lib/libutil/logout.c index 5b9a821..c0bd859 100644 --- a/lib/libutil/logout.c +++ b/lib/libutil/logout.c @@ -54,9 +54,9 @@ typedef struct utmp UTMP; int logout(line) - register char *line; + const char *line; { - register int fd; + int fd; UTMP ut; int rval; -- cgit v1.1