Index: plat_openbsd.c --- plat_openbsd.c.orig +++ plat_openbsd.c @@ -54,10 +54,12 @@ static char plat_openbsd[] = "$Id: plat_openbsd.c,v 1. #include #include #include +#include #include -#include #include "include/wm_struct.h" +#include "include/wm_cdrom.h" +#include "include/wm_helpers.h" #define WM_MSG_CLASS WM_MSG_CLASS_PLATFORM @@ -82,7 +84,7 @@ gen_init(struct wm_drive *d) * Get the number of tracks on the CD. */ int -gen_get_trackcount(struct wm_drive *d, int tracks) +gen_get_trackcount(struct wm_drive *d, int *tracks) { struct ioc_toc_header hdr; @@ -473,7 +475,7 @@ wmcd_open(struct wm_drive *d) if (!warned) { fprintf(stderr, - "As root, please run\n\nchmod 666 %s\n\n%s\n", cd_device, + "As root, please run\n\nchmod 644 %s\n\n%s\n", cd_device, "to give yourself permission to access the CD-ROM device."); warned++; }