List improvements from kpfleming (bugs #3166,#3140)
[asterisk/asterisk.git] / pbx / pbx_loopback.c
index 16b8540..0868cd7 100755 (executable)
@@ -81,7 +81,7 @@ static char *loopback_helper(char *buf, int buflen, const char *exten, const cha
        pbx_substitute_variables_varshead(&headp, data, buf, buflen);
        /* Substitute variables */
        while (!AST_LIST_EMPTY(&headp)) {           /* List Deletion. */
-               newvariable = AST_LIST_REMOVE_HEAD(&headp, ast_var_t, entries);
+               newvariable = AST_LIST_REMOVE_HEAD(&headp, entries);
                ast_var_delete(newvariable);
        }
        return buf;