diff options
author | Chris Robinson <[email protected]> | 2007-12-16 19:45:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-16 19:45:32 -0800 |
commit | d14ea2965d16873cadd270328b4410ad0e085102 (patch) | |
tree | 30d425c9224fb83d2cd0f054693a672ef1396c17 /Alc/oss.c | |
parent | e773887b4b2dcece3207a8d6e52ac5e56d32cfdd (diff) |
The error code is in errno, not the return value
Diffstat (limited to 'Alc/oss.c')
-rw-r--r-- | Alc/oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |