Skip to content

Commit c3f239a

Browse files
committed
patches: Fix compilation on Arch Linux.
* Remove unused variables in out-of-tree group vars patch.
1 parent da7fe58 commit c3f239a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

patches/groupvars_old.diff

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ index d1e89d9567..546c660706 100644
993993
static int group_list_function_read(struct ast_channel *chan, const char *cmd,
994994
char *data, char *buf, size_t len)
995995
{
996-
@@ -285,21 +1178,229 @@ static int group_list_function_read(struct ast_channel *chan, const char *cmd,
996+
@@ -285,21 +1178,227 @@ static int group_list_function_read(struct ast_channel *chan, const char *cmd,
997997
return 0;
998998
}
999999

@@ -1066,7 +1066,6 @@ index d1e89d9567..546c660706 100644
10661066
+ struct ast_group_meta *gmi = NULL;
10671067
+ struct varshead *headp;
10681068
+ struct ast_var_t *variable = NULL;
1069-
+ int numgroups = 0;
10701069
+ int numchans = 0;
10711070
+ struct ast_str *out = ast_str_create(4096);
10721071
+
@@ -1100,7 +1099,6 @@ index d1e89d9567..546c660706 100644
11001099
+ gmi = ast_app_group_meta_head();
11011100
+ while (gmi) {
11021101
+ ast_str_append(&out, 0, FORMAT_STRING_GROUPS, gmi->group, (strcmp(gmi->category, "") ? gmi->category : "(Default)"));
1103-
+ numgroups++;
11041102
+ headp = &gmi->varshead;
11051103
+
11061104
+ AST_LIST_TRAVERSE(headp, variable, entries) {

0 commit comments

Comments
 (0)