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

Diff for /src/usr.bin/cdio/rip.c between version 1.20 and 1.21

version 1.20, 2022/10/10 14:52:02 version 1.21, 2022/10/11 16:32:40
Line 394 
Line 394 
                         if (ti->fd >= 0 &&                          if (ti->fd >= 0 &&
                             (write_sector(ti->fd, sec, blksize) != 0)) {                              (write_sector(ti->fd, sec, blksize) != 0)) {
                                 free(sec);                                  free(sec);
                                 fprintf(stderr, "\nerror while writing to the "                                  fprintf(stderr, "\n");
                                     "%s file\n", ti->name);                                  warnx("error while writing to the %s file",
                                       ti->name);
                                 return (-1);                                  return (-1);
                         }                          }
                         if (ti->hdl != NULL &&                          if (ti->hdl != NULL &&
Line 403 
Line 404 
                                 sio_close(ti->hdl);                                  sio_close(ti->hdl);
                                 ti->hdl = NULL;                                  ti->hdl = NULL;
                                 free(sec);                                  free(sec);
                                 fprintf(stderr, "\nerror while writing to audio "                                  fprintf(stderr, "\n");
                                     "output\n");                                  warnx("error while writing to audio output");
                                 return (-1);                                  return (-1);
                         }                          }
   
                         i++;                          i++;
                 } else if (error != EAGAIN) {                  } else if (error != EAGAIN) {
                         free(sec);                          free(sec);
                         fprintf(stderr, "\nerror while reading from device\n");                          fprintf(stderr, "\n");
                           warnx("error while reading from device");
                         return (-1);                          return (-1);
                 }                  }
         }          }
Line 567 
Line 569 
                                         info.fd = -1;                                          info.fd = -1;
                                 }                                  }
                                 if (error != 0) {                                  if (error != 0) {
                                         fprintf(stderr, "can't rip track %u\n",                                          warnx("can't rip track %u",
                                             toc_buffer[i].track);                                              toc_buffer[i].track);
                                         break;                                          break;
                                 }                                  }

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21