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 | |
parent | 855cc0b1ea13c127721cde5d1c4f98c30242f3f0 (diff) |
_THREAD_PRIVATE_* macros changed
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/getlogin.c | 6 | ||||
-rw-r--r-- | lib/libc/gen/ttyname.c | 4 |
2 files changed, 5 insertions, 5 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) diff --git a/lib/libc/gen/ttyname.c b/lib/libc/gen/ttyname.c index a18b68fdd2c..0a1a9208585 100644 --- a/lib/libc/gen/ttyname.c +++ b/lib/libc/gen/ttyname.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: ttyname.c,v 1.6 1998/11/20 11:18:40 d Exp $"; +static char rcsid[] = "$OpenBSD: ttyname.c,v 1.7 2000/01/06 08:24:16 d Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -67,7 +67,7 @@ ttyname_r(int fd, char *buf, size_t buflen) char * ttyname(int fd) { - _THREAD_PRIVATE_KEY(ttyname) + _THREAD_PRIVATE_KEY(ttyname); char * bufp = (char*) _THREAD_PRIVATE(ttyname, buf, NULL); int err; |