diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-01 19:39:26 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-01 19:42:49 +0200 |
commit | eb55e6aa88f5dfef10c86fae5377e1280cf91bf7 (patch) | |
tree | 54bb41b10845225d4c45cc4b520a510a71673899 /src/write_queue.c | |
parent | 77ab2f723ee221e0a12f9664383c578e62b7cd13 (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/write_queue.c')
-rw-r--r-- | src/write_queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/write_queue.c b/src/write_queue.c index 80e6c42e..9a8b05c4 100644 --- a/src/write_queue.c +++ b/src/write_queue.c @@ -46,13 +46,13 @@ int osmo_wqueue_bfd_cb(struct osmo_fd *fd, unsigned int what) if (what & BSC_FD_READ) { rc = queue->read_cb(fd); - if (rc == -EBADFD) + if (rc == -EBADF) goto err_badfd; } if (what & BSC_FD_EXCEPT) { rc = queue->except_cb(fd); - if (rc == -EBADFD) + if (rc == -EBADF) goto err_badfd; } @@ -69,7 +69,7 @@ int osmo_wqueue_bfd_cb(struct osmo_fd *fd, unsigned int what) rc = queue->write_cb(fd, msg); msgb_free(msg); - if (rc == -EBADFD) + if (rc == -EBADF) goto err_badfd; if (!llist_empty(&queue->msg_queue)) |