"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/drvldbs.c" between
libdsk-1.5.15.tar.gz and libdsk-1.5.17.tar.gz

About: LIBDSK is a library for accessing discs and disc image files. Development version.

drvldbs.c  (libdsk-1.5.15):drvldbs.c  (libdsk-1.5.17)
skipping to change at line 326 skipping to change at line 326
dsk_err_t err; dsk_err_t err;
LDBSDISK_DSK_DRIVER *self; LDBSDISK_DSK_DRIVER *self;
int n; int n;
DC_CHECK(pdriver) DC_CHECK(pdriver)
self = (LDBSDISK_DSK_DRIVER *)pdriver; self = (LDBSDISK_DSK_DRIVER *)pdriver;
err = ldbsdisk_select_track(self, cyl, head); err = ldbsdisk_select_track(self, cyl, head);
if (err) return err; if (err) return err;
if (!self->ld_cur_track) /* Track not found */ /* Track not found, or has no sectors */
if (!self->ld_cur_track || self->ld_cur_track->count == 0)
{ {
self->ld_sector = 0; self->ld_sector = 0;
return DSK_ERR_NOADDR; return DSK_ERR_NOADDR;
} }
/* Check the track was recorded with the requested density and /* Check the track was recorded with the requested density and
* recording mode */ * recording mode */
err = check_density(self, geom); err = check_density(self, geom);
if (err) return err; if (err) return err;
n = self->ld_sector % self->ld_cur_track->count; n = self->ld_sector % self->ld_cur_track->count;
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)