summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1997-09-04 22:38:59 +0000
committerpst <pst@FreeBSD.org>1997-09-04 22:38:59 +0000
commit930fa4a4383c1260c42a0b5ae7981c9b1471552d (patch)
treefe47524e8384e93ce197dd4c16083ff927e7b7f3 /lib/libutil
parentd1685a9fcc6f0e406336b0ac105056b84d1ba470 (diff)
downloadFreeBSD-src-930fa4a4383c1260c42a0b5ae7981c9b1471552d.zip
FreeBSD-src-930fa4a4383c1260c42a0b5ae7981c9b1471552d.tar.gz
The parameters to logwtmp should be const char's
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/libutil.h4
-rw-r--r--lib/libutil/logwtmp.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index 62b308b..8a96284 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -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,
diff --git a/lib/libutil/logwtmp.c b/lib/libutil/logwtmp.c
index c0357b2..de3c5d6 100644
--- a/lib/libutil/logwtmp.c
+++ b/lib/libutil/logwtmp.c
@@ -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;
OpenPOWER on IntegriCloud