mirror of
https://github.com/asterisk/asterisk.git
synced 2026-04-28 17:53:35 +00:00
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
This commit is contained in:
committed by
github-actions[bot]
parent
de37314f85
commit
46a8521b00
@@ -951,7 +951,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;
|
||||
|
||||
|
||||
@@ -769,7 +769,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);
|
||||
|
||||
Reference in New Issue
Block a user