aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/callback.c')
-rw-r--r--sim/common/callback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c
index 8f8aa9c..f811304 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -121,7 +121,7 @@ fdbad (p, fd)
{
if (fd < 0 || fd > MAX_CALLBACK_FDS || p->fd_buddy[fd] < 0)
{
- p->last_errno = EINVAL;
+ p->last_errno = EBADF;
return -1;
}
return 0;