From 94615933eb96bb6ea83989339dc3e49f0efca0ba Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Wed, 3 Jun 2026 18:37:30 +0200 Subject: [PATCH] MT#61856 call_interfaces: make `_ng_basic_errors` const correct When accessing the array members via the pointer they are still read-only, but the entries themselves are mutable. So just make the elements constant pointers. Also comply with the indentation style, and use tabs, not spaces. Change-Id: I2165d0bf0b7b3ee4ad053c235dae4f60f36c1a43 --- daemon/call_interfaces.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index ed9685ac0..6ba8206b6 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -46,11 +46,11 @@ enum basic_errors { NG_ERROR_NO_TO_TAG = 4 }; -static const char* _ng_basic_errors[] = { - [NG_ERROR_NO_SDP_BODY] = "No SDP body in message", - [NG_ERROR_NO_CALL_ID] = "No call-id in message", - [NG_ERROR_NO_FROM_TAG] = "No from-tag in message", - [NG_ERROR_NO_TO_TAG] = "No to-tag in message", +static const char* const _ng_basic_errors[] = { + [NG_ERROR_NO_SDP_BODY] = "No SDP body in message", + [NG_ERROR_NO_CALL_ID] = "No call-id in message", + [NG_ERROR_NO_FROM_TAG] = "No from-tag in message", + [NG_ERROR_NO_TO_TAG] = "No to-tag in message", }; static void ng_stats_ssrc(const ng_parser_t *parser, parser_arg dict, parser_arg list,