=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndioctl/sndioctl.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- src/usr.bin/sndioctl/sndioctl.c 2020/06/18 05:28:49 1.12 +++ src/usr.bin/sndioctl/sndioctl.c 2020/06/18 05:33:16 1.13 @@ -1,4 +1,4 @@ -/* $OpenBSD: sndioctl.c,v 1.12 2020/06/18 05:28:49 ratchov Exp $ */ +/* $OpenBSD: sndioctl.c,v 1.13 2020/06/18 05:33:16 ratchov Exp $ */ /* * Copyright (c) 2014-2020 Alexandre Ratchov * @@ -848,8 +848,15 @@ } } - if (d->type == SIOCTL_NONE) + switch (d->type) { + case SIOCTL_NUM: + case SIOCTL_SW: + case SIOCTL_VEC: + case SIOCTL_LIST: + break; + default: return; + } /* * find the right position to insert the new widget