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
mr26.1
Donat Zenichev 2 weeks ago
parent c78641538d
commit 94615933eb

@ -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,

Loading…
Cancel
Save