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

Diff for /src/usr.bin/aucat/aucat.c between version 1.87 and 1.88

version 1.87, 2010/04/24 06:18:23 version 1.88, 2010/04/24 14:33:46
Line 547 
Line 547 
                 dopar = ipar;                  dopar = ipar;
                 dipar = opar;                  dipar = opar;
         }          }
         if (!l_flag && SLIST_EMPTY(&ifiles) &&          if (!l_flag && SLIST_EMPTY(&ifiles) && SLIST_EMPTY(&ofiles)) {
             SLIST_EMPTY(&ofiles) && argc > 0) {                  if (argc > 0) {
                 /*                          /*
                  * Legacy mode: if no -i or -o options are provided, and                           * Legacy mode: if no -i or -o options are provided, and
                  * there are arguments then assume the arguments are files                           * there are arguments then assume the arguments are files
                  * to play.                           * to play.
                  */                           */
                 for (c = 0; c < argc; c++)                          for (c = 0; c < argc; c++)
                         if (legacy_play(devpath, argv[c]) != 0) {                                  if (legacy_play(devpath, argv[c]) != 0) {
                                 errx(1, "%s: could not play\n", argv[c]);                                          errx(1, "%s: could not play\n", argv[c]);
                         }                                  }
                 exit(0);                          exit(0);
         } else if (argc > 0) {                  } else {
                 aucat_usage();                          aucat_usage();
                 exit(1);                          exit(1);
                   }
         }          }
   
         if (!l_flag && (!SLIST_EMPTY(&sfiles) || unit >= 0))          if (!l_flag && (!SLIST_EMPTY(&sfiles) || unit >= 0))

Legend:
Removed from v.1.87  
changed lines
  Added in v.1.88