Constify the arg to logout(3). It is const-safe.
(cosmetic: drop some "register" qualifications too.)
This commit is contained in:
parent
b70158bae1
commit
8cfadb8904
@ -47,7 +47,7 @@ struct in_addr;
|
|||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
void login __P((struct utmp *_ut));
|
void login __P((struct utmp *_ut));
|
||||||
int login_tty __P((int _fd));
|
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 logwtmp __P((const char *_line, const char *_name, const char *_host));
|
||||||
void trimdomain __P((char *_fullhost, int _hostsize));
|
void trimdomain __P((char *_fullhost, int _hostsize));
|
||||||
int openpty __P((int *_amaster, int *_aslave, char *_name,
|
int openpty __P((int *_amaster, int *_aslave, char *_name,
|
||||||
|
@ -54,9 +54,9 @@ typedef struct utmp UTMP;
|
|||||||
|
|
||||||
int
|
int
|
||||||
logout(line)
|
logout(line)
|
||||||
register char *line;
|
const char *line;
|
||||||
{
|
{
|
||||||
register int fd;
|
int fd;
|
||||||
UTMP ut;
|
UTMP ut;
|
||||||
int rval;
|
int rval;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user