From a010e6abed2c84e302823c4403ef3782b34bb6f1 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 30 Jul 2008 04:58:24 +0000 Subject: * 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. --- winsup/cygwin/libc/bsdlib.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/libc/bsdlib.cc') diff --git a/winsup/cygwin/libc/bsdlib.cc b/winsup/cygwin/libc/bsdlib.cc index b61c7aaaf..9d488c35a 100644 --- a/winsup/cygwin/libc/bsdlib.cc +++ b/winsup/cygwin/libc/bsdlib.cc @@ -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; -- cgit v1.2.3