[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.97 and 1.98

version 1.97, 2021/03/08 09:42:50 version 1.98, 2021/03/10 08:21:27
Line 1777 
Line 1777 
                         bestidx = i;                          bestidx = i;
                 }                  }
         }          }
         if (bestidx != DEV_NSLOT) {  
                 s = slot_array + bestidx;  
                 s->vol = MIDI_MAXCTL;  
                 strlcpy(s->name, name, SLOT_NAMEMAX);  
                 s->serial = slot_serial++;  
                 for (i = 0; unit[i] != NULL; i++)  
                         ; /* nothing */  
                 s->unit = i;  
                 s->id = id;  
                 goto found;  
         }  
   
         if (log_level >= 1) {          if (bestidx == DEV_NSLOT) {
                 log_puts(name);                  if (log_level >= 1) {
                 log_puts(": out of sub-device slots\n");                          log_puts(name);
                           log_puts(": out of sub-device slots\n");
                   }
                   return NULL;
         }          }
         return NULL;  
           s = slot_array + bestidx;
           s->vol = MIDI_MAXCTL;
           strlcpy(s->name, name, SLOT_NAMEMAX);
           s->serial = slot_serial++;
           for (i = 0; unit[i] != NULL; i++)
                   ; /* nothing */
           s->unit = i;
           s->id = id;
   
 found:  found:
         if ((mode & MODE_REC) && (opt->mode & MODE_MON)) {          if ((mode & MODE_REC) && (opt->mode & MODE_MON)) {

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98