diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-07-17 22:30:28 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-07-17 22:30:28 +0000 |
commit | 40ce5e0d18520cd7a440cd8849e3e920be68f471 (patch) | |
tree | 5499af489ac45954318119e4294811be3da06dff /include/asterisk | |
parent | da1902cdc060763a712bb1586cfca5ec1e9a2c49 (diff) |
Change ast_hangup() to return void and be NULL safe.
Since ast_hangup() is effectively a channel destructor, it should be a
void function.
* Make the few silly callers checking the return value no longer do so.
Only the CDR and CEL unit tests checked the return value.
* Make all callers take advantage of the NULL safe change and remove the
NULL check before the call.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/channel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 77629b7a8..94053eec2 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1427,9 +1427,9 @@ const struct ast_channel_tech *ast_get_channel_tech(const char *name); * performs all stream stopping, etc, on the channel that needs to end. * chan is no longer valid after this call. * \param chan channel to hang up - * \return Returns 0 on success, -1 on failure. + * \return Nothing */ -int ast_hangup(struct ast_channel *chan); +void ast_hangup(struct ast_channel *chan); /*! * \brief Softly hangup up a channel |