summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/xcdplayer/files/cdrom_freebsd.c17
-rw-r--r--audio/xcdplayer/files/cdrom_freebsd.h3
2 files changed, 10 insertions, 10 deletions
diff --git a/audio/xcdplayer/files/cdrom_freebsd.c b/audio/xcdplayer/files/cdrom_freebsd.c
index 756d9c0d9ac..ac89df7cf29 100644
--- a/audio/xcdplayer/files/cdrom_freebsd.c
+++ b/audio/xcdplayer/files/cdrom_freebsd.c
@@ -1,5 +1,4 @@
-/* $NetBSD: cdrom_freebsd.c,v 1.3 1998/08/07 10:36:19 agc Exp $ */
-
+$NetBSD: cdrom_freebsd.c,v 1.4 1998/08/23 06:47:02 garbled Exp $
/*
* Copyright (C) 1990 Regents of the University of California.
*
@@ -32,8 +31,8 @@ static int c;
# include "debug.h"
# include "cdrom_freebsd.h"
+# include "app.h"
-extern char *device;
#ifdef __NetBSD__
static char cdrom[] = "/dev/rcd0d";
static char cdrom1[] = "/dev/rmcd0d";
@@ -48,6 +47,8 @@ FILE *disc_info = NULL;
static int cdrom_fd = -1;
+extern AppData app_data;
+
get_stored_info()
{
int i,n;
@@ -67,8 +68,8 @@ get_stored_info()
n = n / cdi.maxtrack;
disc_title = NULL;
- if (cdInfoDir != NULL)
- sprintf(info_filename, "%s/cd.%d", cdInfoDir, n);
+ if (app_data.cdInfoDir != NULL)
+ sprintf(info_filename, "%s/cd.%d", app_data.cdInfoDir, n);
else
sprintf(info_filename, "cd.%d", n);
@@ -101,9 +102,9 @@ cdrom_open() {
if (cdrom_fd != -1)
return(cdi.curtrack);
- if (device != NULL) {
- if ((cdrom_fd = open(device, O_RDONLY)) == -1) {
- perror(device);
+ if (app_data.device != NULL) {
+ if ((cdrom_fd = open(app_data.device, O_RDONLY)) == -1) {
+ perror(app_data.device);
return(-1);
}
} else {
diff --git a/audio/xcdplayer/files/cdrom_freebsd.h b/audio/xcdplayer/files/cdrom_freebsd.h
index 5ba6a49c552..1168ee03d9b 100644
--- a/audio/xcdplayer/files/cdrom_freebsd.h
+++ b/audio/xcdplayer/files/cdrom_freebsd.h
@@ -1,5 +1,4 @@
-/* $NetBSD: cdrom_freebsd.h,v 1.2 1998/08/07 10:36:19 agc Exp $ */
-
+$NetBSD: cdrom_freebsd.h,v 1.3 1998/08/23 06:47:03 garbled Exp $
/*
* Copyright (C) 1990 Regents of the University of California.
*