commit | eb55e6aa88f5dfef10c86fae5377e1280cf91bf7 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Tue Jul 01 19:39:26 2014 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Tue Jul 01 19:42:49 2014 +0200 |
tree | 54bb41b10845225d4c45cc4b520a510a71673899 | |
parent | 77ab2f723ee221e0a12f9664383c578e62b7cd13 [diff] [blame] |
write_queue: Use EBADF instead of EBABDFD for portability EBADFD is linux specific while EBADF is POSIX. Fix the build on FreeBSD and use EBADF throughout the file.
diff --git a/src/vty/telnet_interface.c b/src/vty/telnet_interface.c index 0a04d15..50b08c8 100644 --- a/src/vty/telnet_interface.c +++ b/src/vty/telnet_interface.c
@@ -120,7 +120,7 @@ } /* vty might have been closed from vithin vty_read() */ - if (rc == -EBADFD) + if (rc == -EBADF) return rc; if (what & BSC_FD_WRITE) {