mirror of https://github.com/ericonr/sndio.git
sndioctl: Check control types and skip unknown ones
This commit is contained in:
parent
7d0bfffd42
commit
97413ec614
|
@ -858,8 +858,16 @@ ondesc(void *arg, struct sioctl_desc *d, int curval)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d->type == SIOCTL_NONE)
|
switch (d->type) {
|
||||||
|
case SIOCTL_NUM:
|
||||||
|
case SIOCTL_SW:
|
||||||
|
case SIOCTL_VEC:
|
||||||
|
case SIOCTL_LIST:
|
||||||
|
case SIOCTL_SEL:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* find the right position to insert the new widget
|
* find the right position to insert the new widget
|
||||||
|
|
Loading…
Reference in New Issue