This is better style as since recently dev->master_enabled is used by
the ctlslot_xxx family functions which -- in the future -- could be
called with the device closed.
No behavior change.
-/* $OpenBSD: dev.c,v 1.95 2021/03/08 09:35:08 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.96 2021/03/08 09:38:36 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
d->pstate = DEV_CFG;
d->slot_list = NULL;
d->master = MIDI_MAXCTL;
+ d->master_enabled = 0;
snprintf(d->name, CTL_NAMEMAX, "%u", d->num);
d->next = dev_list;
dev_list = d;
char name[CTL_NAMEMAX];
struct dev_alt *a;
- d->master_enabled = 0;
d->mode = d->reqmode;
d->round = d->reqround;
d->bufsz = d->reqbufsz;