diff options
author | Christopher Faylor <me@cgf.cx> | 2008-07-30 08:58:24 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-07-30 08:58:24 +0400 |
commit | a010e6abed2c84e302823c4403ef3782b34bb6f1 (patch) | |
tree | 85d4a3bc4bc26912d44e8a2486db84fcb7efef03 /winsup/cygwin/libc | |
parent | dbfc6f0e7853822a87fb2521f71a856b02c60875 (diff) |
* 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.
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r-- | winsup/cygwin/libc/bsdlib.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; |