summaryrefslogtreecommitdiff
path: root/audio/cdplay/files
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>2003-01-04 17:30:19 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>2003-01-04 17:30:19 +0000
commit4acd28464ab661f8a555039bb5e38bb5775de54a (patch)
tree3182a8d365d683d3b26f603777a969518c568421 /audio/cdplay/files
parentUpdate to Vim 6.1 patchlevel 271 (diff)
Grab the default CDROM device from $CDROM, just like cdcontrol(1).
Notes
Notes: svn path=/head/; revision=72520
Diffstat (limited to 'audio/cdplay/files')
-rw-r--r--audio/cdplay/files/patch-ae13
1 files changed, 12 insertions, 1 deletions
diff --git a/audio/cdplay/files/patch-ae b/audio/cdplay/files/patch-ae
index c782287bfc81..0c7c50aec1e0 100644
--- a/audio/cdplay/files/patch-ae
+++ b/audio/cdplay/files/patch-ae
@@ -1,7 +1,18 @@
diff -ur ../cdplay-0.92.orig/main.c ./main.c
--- ../cdplay-0.92.orig/main.c Mon Nov 17 04:26:26 1997
+++ ./main.c Sat Jun 27 00:29:34 1998
-@@ -77,10 +77,11 @@
+@@ -39,7 +39,9 @@
+ struct timeval stime;
+
+ /* Parse arguments */
+- cd_device=DEVICE;
++ cd_device=getenv("CDROM");
++ if (cd_device==NULL)
++ cd_device=DEVICE;
+ if(argc>1 && !strcmp(argv[1],"-d"))
+ cd_device=argv[2];
+ else if(argc>1)
+@@ -77,10 +79,11 @@
else if(cmd[0]=='r'){message="rew";rew();}
else if(cmd[0]=='s'){message="stop";stop();}
else if(cmd[0]=='e'){message="eject";eject();}