* cygwin.din (_getutline): Remove.

* lib/bsdlib.cc (login): Make argument const as per linux.
(logout): Ditto.
* syscalls.cc (getutid): Ditto.
(getutline): Ditto.
(pututline): Ditto.
(getutxent): Add comment mentioning non-thread-safety.
(getutxid): Ditto.
(getutxline): Ditto.
(pututxline): Ditto.
* sys/utmp.h: Declare arguments to various functions as const as per linux.
Remove bogus _getutline definition.
This commit is contained in:
Christopher Faylor
2008-07-30 04:58:24 +00:00
parent dbfc6f0e78
commit a010e6abed
6 changed files with 36 additions and 16 deletions

View File

@ -271,7 +271,7 @@ logwtmp (const char *line, const char *user, const char *host)
}
extern "C" void
login (struct utmp *ut)
login (const struct utmp *ut)
{
pututline (ut);
endutent ();
@ -279,7 +279,7 @@ login (struct utmp *ut)
}
extern "C" int
logout (char *line)
logout (const char *line)
{
struct utmp ut_buf, *ut;