summaryrefslogtreecommitdiff
path: root/usr.bin/top/top.c
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2007-11-06 04:24:40 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2007-11-06 04:24:40 +0000
commit3b0f0d50aee356252428dc2be18048dcf85a70f4 (patch)
treeefb322ff4cacf71f3ae50226bdd914619e09dd2e /usr.bin/top/top.c
parent96138cf8fbeac744f3b9e3613fb731971f0a1cf8 (diff)
- when we need to do both AUDIO_SETINFO and AUDIO_GETINFO to emulate
a single OSS ioctl, return the return value and errno from from AUDIO_SETINFO if there was an error, since it's more informative than the return value and errno from AUDIO_GETINFO. also, don't bail if AUDIO_SETINFO fails, because OSS ioctls should return the current value of the parameter they are setting, even if there was an error. - avoid a possible (though highly unlikely) divide by zero in SNDCTL_DSP_GET[IO]SPACE. ok ratchov@
Diffstat (limited to 'usr.bin/top/top.c')
0 files changed, 0 insertions, 0 deletions