summaryrefslogtreecommitdiff
path: root/libc/stdlib/grantpt.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-10 02:46:52 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-10 02:46:52 +0000
commit611d2eff2507b5d9cfcbf8dde708a3db0d3c9fde (patch)
tree6456b184e0d3f12b0422dabd9e98f12520284e0a /libc/stdlib/grantpt.c
parenta005e0b515ce7863d8baa4addde15a437edd8063 (diff)
sync with glibc (grab some hidden updates) and fix some warnings
Diffstat (limited to 'libc/stdlib/grantpt.c')
-rw-r--r--libc/stdlib/grantpt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/stdlib/grantpt.c b/libc/stdlib/grantpt.c
index 5b4427a0c..2c59cd678 100644
--- a/libc/stdlib/grantpt.c
+++ b/libc/stdlib/grantpt.c
@@ -45,15 +45,15 @@ static int pts_name (int fd, char **pts, size_t buf_len);
terminal associated with the master pseudo terminal specified
by FD. */
int
+#if !defined __ASSUME_DEVPTS__
grantpt (int fd)
+#else
+grantpt (attribute_unused int fd)
+#endif
{
#if !defined __ASSUME_DEVPTS__
struct statfs fsbuf;
-# ifdef PATH_MAX
char _buf[PATH_MAX];
-# else
- char _buf[512];
-# endif
char *buf = _buf;
if (pts_name (fd, &buf, sizeof (_buf)))