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

Diff for /src/usr.bin/sndiod/sndiod.c between version 1.38 and 1.39

version 1.38, 2020/02/26 13:53:58 version 1.39, 2020/04/01 16:54:17
Line 119 
Line 119 
     "[-v volume] [-w flag] [-z nframes]\n";      "[-v volume] [-w flag] [-z nframes]\n";
   
 /*  /*
    * default MIDI ports
    */
   static char *default_ports[] = {
           "rmidi/0", "rmidi/1", "rmidi/2", "rmidi/3",
           "rmidi/4", "rmidi/5", "rmidi/6", "rmidi/7",
           NULL
   };
   
   /*
  * SIGINT handler, it raises the quit flag. If the flag is already set,   * SIGINT handler, it raises the quit flag. If the flag is already set,
  * that means that the last SIGINT was not handled, because the process   * that means that the last SIGINT was not handled, because the process
  * is blocked somewhere, so exit.   * is blocked somewhere, so exit.
Line 445 
Line 454 
 int  int
 main(int argc, char **argv)  main(int argc, char **argv)
 {  {
         int c, background, unit;          int c, i, background, unit;
         int pmin, pmax, rmin, rmax;          int pmin, pmax, rmin, rmax;
         char base[SOCKPATH_MAX], path[SOCKPATH_MAX];          char base[SOCKPATH_MAX], path[SOCKPATH_MAX];
         unsigned int mode, dup, mmc, vol;          unsigned int mode, dup, mmc, vol;
Line 582 
Line 591 
         if (argc > 0) {          if (argc > 0) {
                 fputs(usagestr, stderr);                  fputs(usagestr, stderr);
                 return 1;                  return 1;
           }
           if (port_list == NULL) {
                   for (i = 0; default_ports[i] != NULL; i++)
                           mkport(default_ports[i], 0);
         }          }
         if (dev_list == NULL)          if (dev_list == NULL)
                 mkdev(DEFAULT_DEV, &par, 0, bufsz, round, rate, hold, autovol);                  mkdev(DEFAULT_DEV, &par, 0, bufsz, round, rate, hold, autovol);

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39