aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty/vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-01 19:39:26 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-01 19:42:49 +0200
commiteb55e6aa88f5dfef10c86fae5377e1280cf91bf7 (patch)
tree54bb41b10845225d4c45cc4b520a510a71673899 /src/vty/vty.c
parent77ab2f723ee221e0a12f9664383c578e62b7cd13 (diff)
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.
Diffstat (limited to 'src/vty/vty.c')
-rw-r--r--src/vty/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c
index fc86bdf3..10a323fd 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -1434,7 +1434,7 @@ int vty_read(struct vty *vty)
/* Check status. */
if (vty->status == VTY_CLOSE) {
vty_close(vty);
- return -EBADFD;
+ return -EBADF;
} else {
vty_event(VTY_WRITE, vty_sock, vty);
vty_event(VTY_READ, vty_sock, vty);