From: bugtrack@alsa-project.org Subject: [ALSA - lib 0001932]: snd_mixer_handle_events() documentation doesn't explain the return value correctly Date: Tue, 21 Mar 2006 17:58:41 +0100 Message-ID: <9aac7ea7242b971c4de119b39c2d58e6@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id F28B81F7 for ; Tue, 21 Mar 2006 17:58:41 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org The following issue has been RESOLVED. ====================================================================== ====================================================================== Reported By: tilman Assigned To: tiwai ====================================================================== Project: ALSA - lib Issue ID: 1932 Category: 2_mixer Reproducibility: always Severity: major Priority: normal Status: resolved Resolution: fixed Fixed in Version: ====================================================================== Date Submitted: 03-16-2006 23:05 CET Last Modified: 03-21-2006 17:58 CET ====================================================================== Summary: snd_mixer_handle_events() documentation doesn't explain the return value correctly Description: The docs for snd_mixer_handle_events() say the return value is: "0 otherwise a negative error code on failure" which suggests that 0 is the only valid return value that represents success. In fact, the function returns the number of mixer events that occurred on success, which makes any return value >=0 represent success. I suggest to apply the attached patch to actually document the return value correctly (applies to CVS HEAD). ====================================================================== ---------------------------------------------------------------------- tiwai - 03-21-06 17:58 ---------------------------------------------------------------------- Applied to CVS. Thanks. Issue History Date Modified Username Field Change ====================================================================== 03-16-06 23:05 tilman New Issue 03-16-06 23:05 tilman File Added: alsalib-snd_mixer_handle_events_documentation.diff 03-21-06 17:58 tiwai Status new => resolved 03-21-06 17:58 tiwai Resolution open => fixed 03-21-06 17:58 tiwai Assigned To => tiwai 03-21-06 17:58 tiwai Note Added: 0008753 ====================================================================== ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642