[BACK]Return to dev.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sndiod

Diff for /src/usr.bin/sndiod/dev.c between version 1.94 and 1.95

version 1.94, 2021/03/03 10:19:06 version 1.95, 2021/03/08 09:35:08
Line 1150 
Line 1150 
         }          }
         d->slot_list = NULL;          d->slot_list = NULL;
   
         for (c = ctlslot_array, i = DEV_NCTLSLOT; i > 0; i--, c++) {          for (c = ctlslot_array, i = 0; i < DEV_NCTLSLOT; i++, c++) {
                 if (c->ops == NULL)                  if (c->ops == NULL)
                         continue;                          continue;
                 if (c->opt->dev != d)                  if (c->opt->dev != d)
Line 2581 
Line 2581 
                     NULL, -1, 127, d->master);                      NULL, -1, 127, d->master);
         }          }
   
         for (s = ctlslot_array, i = DEV_NCTLSLOT; i > 0; i--, s++) {          for (s = ctlslot_array, i = 0; i < DEV_NCTLSLOT; i++, s++) {
                 if (s->ops && s->opt->dev == d)                  if (s->ops == NULL)
                           continue;
                   if (s->opt->dev == d)
                         s->ops->sync(s->arg);                          s->ops->sync(s->arg);
         }          }
 }  }

Legend:
Removed from v.1.94  
changed lines
  Added in v.1.95