Newer versions of gcc have a bug where switch statements with only

a default: label cause a segmentation fault.  So just return EINVAL
from sysarch.
This commit is contained in:
jake 2001-12-23 07:04:05 +00:00
parent ea59f3f130
commit 7369c41ce5

View File

@ -40,13 +40,5 @@ struct sysarch_args {
int
sysarch(struct thread *td, struct sysarch_args *uap)
{
int error;
error = 0;
switch (uap->op) {
default:
error = EINVAL;
break;
}
return (error);
return (EINVAL);
}