changeset 1311:e116beb1ac7b

Minor code cleanup from Vladimir Kushnir
author jkeil
date Fri, 13 Jul 2001 08:44:51 +0000
parents db4cfb480538
children cca0d2481b7e
files vcd_read_fbsd.h
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/vcd_read_fbsd.h	Thu Jul 12 16:11:55 2001 +0000
+++ b/vcd_read_fbsd.h	Fri Jul 13 08:44:51 2001 +0000
@@ -12,6 +12,7 @@
 	uint8_t spare           [4];
 } cdsector_t;
 
+static cdsector_t vcd_buf;
 static struct ioc_read_toc_single_entry vcd_entry;
 
 static inline void vcd_set_msf(unsigned int sect){
@@ -77,13 +78,10 @@
     }
 }
 
-static cdsector_t vcd_buf;
+static int vcd_read(int fd,char *mem){
 
-static int vcd_read(int fd,char *mem){
-	off_t offset = 0;
       if (pread(fd,&vcd_buf,VCD_SECTOR_SIZE,vcd_get_msf()*VCD_SECTOR_SIZE)
 	 != VCD_SECTOR_SIZE) return 0;  // EOF?
-      offset++;
 
       vcd_entry.entry.addr.msf.frame++;
       if (vcd_entry.entry.addr.msf.frame==75){