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

Diff for /src/usr.bin/aucat/Attic/wav.c between version 1.8 and 1.9

version 1.8, 2009/09/19 21:21:36 version 1.9, 2009/09/27 11:51:20
Line 14 
Line 14 
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
   
 #include <sys/types.h>  
   
 #include <err.h>  
 #include <fcntl.h>  
 #include <stdio.h>  
 #include <stdlib.h>  #include <stdlib.h>
 #include <unistd.h>  
   
 #include "conf.h"  #include "conf.h"
 #include "wav.h"  #include "wav.h"
Line 186 
Line 180 
         if (f->rbytes >= 0 && count > f->rbytes) {          if (f->rbytes >= 0 && count > f->rbytes) {
                 count = f->rbytes; /* file->rbytes fits in count */                  count = f->rbytes; /* file->rbytes fits in count */
                 if (count == 0) {                  if (count == 0) {
                         DPRINTFN(2, "wav_read: %s: complete\n", f->pipe.file.name);  
                         file_eof(&f->pipe.file);                          file_eof(&f->pipe.file);
                         return 0;                          return 0;
                 }                  }
Line 212 
Line 205 
         if (f->wbytes >= 0 && count > f->wbytes) {          if (f->wbytes >= 0 && count > f->wbytes) {
                 count = f->wbytes; /* wbytes fits in count */                  count = f->wbytes; /* wbytes fits in count */
                 if (count == 0) {                  if (count == 0) {
                         DPRINTFN(2, "wav_write: %s: complete\n",  
                             f->pipe.file.name);  
                         file_hup(&f->pipe.file);                          file_hup(&f->pipe.file);
                         return 0;                          return 0;
                 }                  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9