diff options
author | Christopher Faylor <me@cgf.cx> | 2002-12-28 19:56:29 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-12-28 19:56:29 +0300 |
commit | c3e4ae5c9efa2edf6d5605e79d49a6f330f5f7d6 (patch) | |
tree | 878383cd80a56b1539e2be63dcbca5f43a683f77 | |
parent | 319d0b884411819bee67ac39f792ccee520aa08b (diff) |
Eliminate unit argument and special unit fields from fhandler classes and
constructors throughout.
* fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): Make decisions based on
specific device type rather than unit number.
* fhandler_random.cc (fhandler_dev_random::write): Ditto.
(fhandler_dev_random::read): Ditto.
* fhandler_socket.cc (fhandler_socket::set_connect_secret): Set device type to
"urandom" after construction of entropy_source.
* path.cc (windows_devices_names): Remove.
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index e3010c54c..62c0cc26c 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1565,9 +1565,7 @@ ttyname (int fd) { cygheap_fdget cfd (fd); if (cfd < 0 || !cfd->is_tty ()) - { - return 0; - } + return 0; return (char *) (cfd->ttyname ()); } |