]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_dial, utils.h: Avoid old style declaration and discarded qualifier. master 1776/head
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 4 Feb 2026 14:52:49 +0000 (09:52 -0500)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 11 Feb 2026 13:34:34 +0000 (13:34 +0000)
* app_dial: Use const char* for fixed strings.
* utils.h: inline should come before return type.

Resolves: #1755

apps/app_dial.c
include/asterisk/utils.h

index 3c2b6a6684c02457379f9fcce9d5c9cc2018b8fb..36db4a34ec8e794ba83476e9c4f2884b98f55d3a 100644 (file)
@@ -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;
 
index 7c962c8e8ad5aabbfaa72d1d3a905a6ce42a64fe..4888f4696d4780871249d983ffb8866fe4419d55 100644 (file)
@@ -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);