From: Richard Mudgett Date: Tue, 4 Feb 2014 20:15:22 +0000 (+0000) Subject: devicestate: Make ast_devstate_changed_literal() return value and doxygen consistent. X-Git-Tag: 13.0.0-beta1~575 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd0c6e9cc12ecd502d0d8bb25bf030b1d2e62f72;p=thirdparty%2Fasterisk.git devicestate: Make ast_devstate_changed_literal() return value and doxygen consistent. Nothing actually cares about the value anyway. (closes issue ASTERISK-23178) Reported by: Jonathan Rose ........ Merged revisions 407337 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 407338 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 407339 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@407340 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/devicestate.h b/include/asterisk/devicestate.h index 565e013410..e724588af9 100644 --- a/include/asterisk/devicestate.h +++ b/include/asterisk/devicestate.h @@ -130,7 +130,6 @@ enum ast_device_state ast_parse_device_state(const char *device); * active channels list for the device. * * \retval an AST_DEVICE_??? state - * \retval -1 on failure */ enum ast_device_state ast_device_state(const char *device); diff --git a/main/devicestate.c b/main/devicestate.c index 7b52f00af0..978d234b72 100644 --- a/main/devicestate.c +++ b/main/devicestate.c @@ -463,7 +463,7 @@ int ast_devstate_changed_literal(enum ast_device_state state, enum ast_devstate_ AST_LIST_UNLOCK(&state_changes); } - return 1; + return 0; } int ast_device_state_changed_literal(const char *dev)