mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: junky Review: https://reviewboard.asterisk.org/r/1743/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -146,7 +146,6 @@ static int group_match_count_function_read(struct ast_channel *chan,
|
||||
const char *cmd, char *data, char *buf,
|
||||
size_t len)
|
||||
{
|
||||
int count;
|
||||
char group[80] = "";
|
||||
char category[80] = "";
|
||||
|
||||
@@ -154,6 +153,7 @@ static int group_match_count_function_read(struct ast_channel *chan,
|
||||
sizeof(category));
|
||||
|
||||
if (!ast_strlen_zero(group)) {
|
||||
int count;
|
||||
count = ast_app_group_match_get_count(group, category);
|
||||
snprintf(buf, len, "%d", count);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user