From d14ea2965d16873cadd270328b4410ad0e085102 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 16 Dec 2007 19:45:32 -0800 Subject: The error code is in errno, not the return value --- Alc/oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/oss.c b/Alc/oss.c index ccd70186..de8f6e43 100644 --- a/Alc/oss.c +++ b/Alc/oss.c @@ -212,7 +212,7 @@ static ALCboolean oss_open_playback(ALCdevice *device, const ALCchar *deviceName ok(ioctl(data->fd, SNDCTL_DSP_SPEED, &ossSpeed), "set speed") && ok(ioctl(data->fd, SNDCTL_DSP_GETOSPACE, &info), "get space"))) { - AL_PRINT("%s failed: %s\n", err, strerror(i)); + AL_PRINT("%s failed: %s\n", err, strerror(errno)); close(data->fd); free(data); return ALC_FALSE; -- cgit v1.2.3