summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/ksched.c4
-rw-r--r--sys/posix4/ksched.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/ksched.c b/sys/kern/ksched.c
index 950cbb2..6ef2940 100644
--- a/sys/kern/ksched.c
+++ b/sys/kern/ksched.c
@@ -228,6 +228,10 @@ int ksched_setscheduler(register_t *ret, struct ksched *ksched,
mtx_unlock_spin(&sched_lock);
}
break;
+
+ default:
+ e = EINVAL;
+ break;
}
return e;
diff --git a/sys/posix4/ksched.c b/sys/posix4/ksched.c
index 950cbb2..6ef2940 100644
--- a/sys/posix4/ksched.c
+++ b/sys/posix4/ksched.c
@@ -228,6 +228,10 @@ int ksched_setscheduler(register_t *ret, struct ksched *ksched,
mtx_unlock_spin(&sched_lock);
}
break;
+
+ default:
+ e = EINVAL;
+ break;
}
return e;
OpenPOWER on IntegriCloud