The parameters to logwtmp should be const char's
This commit is contained in:
parent
f48c26f183
commit
326df44ead
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29119
@ -18,7 +18,7 @@
|
||||
* 5. Modifications may be freely made to this file providing the above
|
||||
* conditions are met.
|
||||
*
|
||||
* $Id: libutil.h,v 1.11 1997/08/27 20:06:19 brian Exp $
|
||||
* $Id: libutil.h,v 1.12 1997/08/31 20:09:38 brian Exp $
|
||||
*/
|
||||
|
||||
#ifndef _LIBUTIL_H_
|
||||
@ -36,7 +36,7 @@ void setproctitle __P((const char *_fmt, ...));
|
||||
void login __P((struct utmp *_ut));
|
||||
int login_tty __P((int _fd));
|
||||
int logout __P((char *_line));
|
||||
void logwtmp __P((char *_line, char *_name, char *_host));
|
||||
void logwtmp __P((const char *_line, const char *_name, const char *_host));
|
||||
int openpty __P((int *_amaster, int *_aslave, char *_name,
|
||||
struct termios *_termp, struct winsize *_winp));
|
||||
int forkpty __P((int *_amaster, char *_name,
|
||||
|
@ -36,7 +36,7 @@
|
||||
static char sccsid[] = "@(#)logwtmp.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: logwtmp.c,v 1.4 1997/08/13 20:42:18 steve Exp $";
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -55,7 +55,9 @@ static const char rcsid[] =
|
||||
|
||||
void
|
||||
logwtmp(line, name, host)
|
||||
char *line, *name, *host;
|
||||
const char *line;
|
||||
const char *name;
|
||||
const char *host;
|
||||
{
|
||||
struct utmp ut;
|
||||
struct stat buf;
|
||||
|
Loading…
Reference in New Issue
Block a user