From 611d2eff2507b5d9cfcbf8dde708a3db0d3c9fde Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 10 Dec 2005 02:46:52 +0000 Subject: sync with glibc (grab some hidden updates) and fix some warnings --- libc/stdlib/grantpt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libc/stdlib/grantpt.c') 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))) -- cgit v1.2.3