about summary refs log tree commit diff
path: root/libio/filedoalloc.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-07-21 05:13:40 +0000
committerRoland McGrath <roland@gnu.org>2001-07-21 05:13:40 +0000
commit11c0b1e39ba31c9ab2731dcd846e2335f778a82e (patch)
treed4aaf3e17d513d0cdc63de32b3f851d876cfd417 /libio/filedoalloc.c
parentd3ab710cbc49c1bafbfe2dce84a3d9f80a2d8d62 (diff)
downloadglibc-11c0b1e39ba31c9ab2731dcd846e2335f778a82e.tar.gz
glibc-11c0b1e39ba31c9ab2731dcd846e2335f778a82e.tar.xz
glibc-11c0b1e39ba31c9ab2731dcd846e2335f778a82e.zip
* sysdeps/generic/device-nrs.h (DEV_TTY_P): Change argument type
	from `dev_t' (st_rdev value) `const struct stat *'.
	* sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Likewise.
	* libio/filedoalloc.c (_IO_file_doallocate): Change caller.
	* sysdeps/mach/hurd/device-nrs.h: New file.
Diffstat (limited to 'libio/filedoalloc.c')
-rw-r--r--libio/filedoalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/filedoalloc.c b/libio/filedoalloc.c
index c2e849a736..3621e43073 100644
--- a/libio/filedoalloc.c
+++ b/libio/filedoalloc.c
@@ -95,7 +95,7 @@ _IO_file_doallocate (fp)
 	  /* Possibly a tty.  */
 	  if (
 #ifdef DEV_TTY_P
-	      DEV_TTY_P (st.st_rdev) ||
+	      DEV_TTY_P (&st) ||
 #endif
 	      isatty (fp->_fileno))
 	    fp->_flags |= _IO_LINE_BUF;