X-Git-Url: https://git.gag.com/?p=debian%2Fcpmtools;a=blobdiff_plain;f=device_win32.c;h=1829443242c47233973a24a96e5dbb521d994e69;hp=339eb340a1c76cb9c91c1d5c28db6d1dbb980799;hb=b1e873c5b2f6376bb39ff0fda1464cbbacbae5f7;hpb=edf600144998d1a1e09898548938cc11b95c10bc diff --git a/device_win32.c b/device_win32.c index 339eb34..1829443 100644 --- a/device_win32.c +++ b/device_win32.c @@ -2,8 +2,8 @@ #include "config.h" #include -#include #include +#include #include #include "cpmdir.h" @@ -385,7 +385,7 @@ const char *Device_open(struct Device *sb, const char *filename, int mode, const } /*}}}*/ /* Device_setGeometry -- Set disk geometry */ /*{{{*/ -void Device_setGeometry(struct Device *this, int secLength, int sectrk, int tracks, off_t offset) +const char * Device_setGeometry(struct Device *this, int secLength, int sectrk, int tracks, off_t offset, const char *libdskGeometry) { int n; @@ -401,7 +401,7 @@ void Device_setGeometry(struct Device *this, int secLength, int sectrk, int trac { DRIVEPARAMS drvp; memset(&drvp, 0, sizeof(drvp)); - if (GetDriveParams( this->hdisk, this->fd, &drvp )) return; + if (GetDriveParams( this->hdisk, this->fd, &drvp )) return "GetDriveParams failed"; drvp.bytespersector = secLength; drvp.sectorspertrack = sectrk; @@ -448,6 +448,7 @@ void Device_setGeometry(struct Device *this, int secLength, int sectrk, int trac */ SetDriveParams( this->hdisk, this->fd, &drvp ); } + return NULL; } /*}}}*/ /* Device_close -- Close an image file */ /*{{{*/