summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-10 14:08:40 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-12-10 14:08:40 +0000
commit56ace36beb591b6f73bb92125b6dbbf0be72db8d (patch)
tree9f181b376fdd40d95fac8b8ab91aab1e0c0fb6f2
parent4e54a567f25804389425198cafc9eaaa1ea4e267 (diff)
- fixup after sync with glibc. _ptyname was renamed to __libc_ptyname
-rw-r--r--libc/stdlib/ptsname.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/stdlib/ptsname.c b/libc/stdlib/ptsname.c
index 769944ba2..c56f18a91 100644
--- a/libc/stdlib/ptsname.c
+++ b/libc/stdlib/ptsname.c
@@ -152,7 +152,7 @@ int attribute_hidden __ptsname_r (int fd, char *buf, size_t buflen)
if (major (st.st_rdev) == 4)
ptyno -= 128;
- if (ptyno / 16 >= __strlen (_ptyname1))
+ if (ptyno / 16 >= __strlen (__libc_ptyname1))
{
errno = ENOTTY;
return ENOTTY;
@@ -160,8 +160,8 @@ int attribute_hidden __ptsname_r (int fd, char *buf, size_t buflen)
__strcpy (buf, _PATH_TTY);
p = buf + __strlen (buf);
- p[0] = _ptyname1[ptyno / 16];
- p[1] = _ptyname2[ptyno % 16];
+ p[0] = __libc_ptyname1[ptyno / 16];
+ p[1] = __libc_ptyname2[ptyno % 16];
p[2] = '\0';
}