[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
Tue Feb 4 13:39:03 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214827#comment-214827 ] 

Richard Mudgett commented on ASTERISK-23178:
--------------------------------------------

ast_devstate_changed_literal() is one of those functions that nothing cares about the return value.  The callers that do use the value just pass it on to their callers and still nothing cares about the return value.
                
> 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