From 786b4b05dc1bfc725995f4c2556d49aec5e2ae1b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Feb 2011 22:35:00 +0100 Subject: systemd: add unit for bootup and shutdown sounds --- src/oss.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/oss.c') diff --git a/src/oss.c b/src/oss.c index 222503c..9bb7149 100644 --- a/src/oss.c +++ b/src/oss.c @@ -230,7 +230,6 @@ static int translate_error(int error) { } static int open_oss(ca_context *c, struct outstanding *out) { - struct private *p; int mode, val, test, ret; ca_return_val_if_fail(c, CA_ERROR_INVALID); @@ -241,8 +240,6 @@ static int open_oss(ca_context *c, struct outstanding *out) { * multichannel streams. We cannot support those files hence */ ca_return_val_if_fail(ca_sound_file_get_nchannels(out->file) <= 2, CA_ERROR_NOTSUPPORTED); - p = PRIVATE(c); - if ((out->pcm = open(c->device ? c->device : "/dev/dsp", O_WRONLY | O_NONBLOCK, 0)) < 0) goto finish_errno; -- cgit