aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-16 19:45:32 -0800
committerChris Robinson <[email protected]>2007-12-16 19:45:32 -0800
commitd14ea2965d16873cadd270328b4410ad0e085102 (patch)
tree30d425c9224fb83d2cd0f054693a672ef1396c17 /Alc/oss.c
parente773887b4b2dcece3207a8d6e52ac5e56d32cfdd (diff)
The error code is in errno, not the return value
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c2
1 files changed, 1 insertions, 1 deletions
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;