app_dial, utils.h: Avoid old style declaration and discarded qualifier.

* app_dial: Use const char* for fixed strings.
* utils.h: inline should come before return type.

Resolves: #1755
pull/1790/head
Naveen Albert 8 months ago
parent cff3f23406
commit 30f8fdc847

@ -1002,7 +1002,7 @@ static void do_forward(struct chanlist *o, struct cause_args *num,
struct ast_channel *c = o->chan; /* the winner */
struct ast_channel *in = num->chan; /* the input channel */
char *stuff;
char *tech;
const char *tech;
int cause;
struct ast_party_caller caller;

@ -764,7 +764,7 @@ void DO_CRASH_NORETURN __ast_assert_failed(int condition, const char *condition_
return __VA_ARGS__; \
}\
})
static void force_inline _ast_assert(int condition, const char *condition_str, const char *file, int line, const char *function)
static force_inline void _ast_assert(int condition, const char *condition_str, const char *file, int line, const char *function)
{
if (__builtin_expect(!condition, 1)) {
__ast_assert_failed(condition, condition_str, file, line, function);

Loading…
Cancel
Save