diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-01-06 08:24:18 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-01-06 08:24:18 +0000 |
commit | 178b4aa182db4d700014af4a12a243012e4d6fdb (patch) | |
tree | 787035f611866fb75dc6a59408bd6814cd7664d3 /lib/libc/gen/getlogin.c | |
parent | 855cc0b1ea13c127721cde5d1c4f98c30242f3f0 (diff) |
_THREAD_PRIVATE_* macros changed
Diffstat (limited to 'lib/libc/gen/getlogin.c')
-rw-r--r-- | lib/libc/gen/getlogin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/getlogin.c b/lib/libc/gen/getlogin.c index b532c406246..ae2a63b778a 100644 --- a/lib/libc/gen/getlogin.c +++ b/lib/libc/gen/getlogin.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getlogin.c,v 1.4 1998/11/20 11:18:39 d Exp $"; +static char rcsid[] = "$OpenBSD: getlogin.c,v 1.5 2000/01/06 08:24:16 d Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -44,7 +44,7 @@ static char rcsid[] = "$OpenBSD: getlogin.c,v 1.4 1998/11/20 11:18:39 d Exp $"; #include <errno.h> #include "thread_private.h" -_THREAD_PRIVATE_MUTEX(logname) +_THREAD_PRIVATE_MUTEX(logname); static int logname_valid = 0; static char logname[MAXLOGNAME + 1]; @@ -54,7 +54,7 @@ int _setlogin __P((const char *)); char * getlogin() { - _THREAD_PRIVATE_KEY(getlogin) + _THREAD_PRIVATE_KEY(getlogin); char * name = (char *)_THREAD_PRIVATE(getlogin, logname, NULL); if ((errno = getlogin_r(name, sizeof logname)) != 0) |