summaryrefslogtreecommitdiffstats
path: root/kscd/libwm
diff options
context:
space:
mode:
Diffstat (limited to 'kscd/libwm')
-rw-r--r--kscd/libwm/plat_openbsd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/kscd/libwm/plat_openbsd.c b/kscd/libwm/plat_openbsd.c
index 57862841..7ee1100d 100644
--- a/kscd/libwm/plat_openbsd.c
+++ b/kscd/libwm/plat_openbsd.c
@@ -57,7 +57,6 @@
#include <sys/scsiio.h>
#include <scsi/scsi_all.h>
#include <scsi/cd.h>
-#include <scsi/scsi_cd.h>
#include "include/wm_struct.h"
#include "include/wm_cdtext.h"
@@ -127,10 +126,12 @@ wmcd_open(struct wm_drive *d)
find_drive_struct(vendor, model, rev);
- (d->init)(d);
-
d->fd = fd;
+ if (d->proto->gen_init) {
+ return (d->proto->gen_init)(d);
+ }
+
return (0);
} /* wmcd_open() */
@@ -314,7 +315,7 @@ gen_get_cdlen(struct wm_drive *d, int *frames)
* Play the CD from one position to another (both in frames.)
*/
int
-gen_play(struct wm_drive *d, int start, int end)
+gen_play(struct wm_drive *d, int start, int end, int realstart)
{
struct ioc_play_msf msf;