[asterisk-bugs] [JIRA] (ASTERISK-23178) devicestate.h: device state setting functions are documented with the wrong return values
Richard Mudgett (JIRA)
noreply at issues.asterisk.org
Fri Jan 31 15:31:03 CST 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Mudgett reassigned ASTERISK-23178:
------------------------------------------
Assignee: Richard Mudgett
> devicestate.h: device state setting functions are documented with the wrong return values
> -----------------------------------------------------------------------------------------
>
> Key: ASTERISK-23178
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23178
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Documentation
> Affects Versions: SVN
> Reporter: Jonathan Rose
> Assignee: Richard Mudgett
> Severity: Minor
>
> Numerous functions in devicestate.h involving the setting of device state are currently documented with incorrect return values. The principle culprit is that ast_devstate_changed_literal is documented with the following return codes
> -1 = failure
> 0 = success
> In reality, it returns 1 unconditionally. This has a cascading effect because the other ast_devstate_changed/ast_device_state_changed functions are usually just wrappers around ast_devstate_changed_literal.
> I haven't checked to see if this is a problem in earlier versions of Asterisk yet.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list