diff --git a/include/asterisk/devicestate.h b/include/asterisk/devicestate.h index 86740bc2fd69b735906d1e9d71adcd4798924d66..29a736dccad2454c663fa85a56d2fa8611c4d23a 100644 --- a/include/asterisk/devicestate.h +++ b/include/asterisk/devicestate.h @@ -129,7 +129,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 651a4b1d893407d40411eda932ec3369dda12d68..d114d02abb457317cb2370094c0fbe4195bdfc27 100644 --- a/main/devicestate.c +++ b/main/devicestate.c @@ -505,7 +505,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)