summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-04-10 18:19:42 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-04-10 18:19:42 +0000
commit9344e4a52b8771597808dca88604252299b54180 (patch)
tree7891161f6e19906ed9e8c120f4207a02f8983bbf /usr.bin
parent828e39dd4175b6cff126784cfef676e999e1de41 (diff)
don't use the AUDIODEVICE env. variable because sio_open(3) already
does it. From Anathae Townsend <atownsend(at)nucleus.com>, thanks!
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cdio/rip.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/cdio/rip.c b/usr.bin/cdio/rip.c
index dd14e04d2ca..2a87fc1acea 100644
--- a/usr.bin/cdio/rip.c
+++ b/usr.bin/cdio/rip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rip.c,v 1.11 2008/12/28 15:48:32 ratchov Exp $ */
+/* $OpenBSD: rip.c,v 1.12 2009/04/10 18:19:41 ratchov Exp $ */
/*
* Copyright (c) 2007 Alexey Vatchenko <av@bsdua.org>
@@ -451,17 +451,13 @@ rip_next_track(struct track_info *info)
int
play_next_track(struct track_info *info)
{
- char *dev;
-
if (!info->isaudio)
return (NXTRACK_SKIP);
if (info->hdl != NULL)
return (NXTRACK_OK);
- dev = getenv("AUDIODEVICE");
-
- info->hdl = sio_open(dev, SIO_PLAY, 0);
+ info->hdl = sio_open(NULL, SIO_PLAY, 0);
if (info->hdl == NULL) {
warnx("could not open audio backend");
goto bad;