From ebd2f0caaa921bd2c72c8ad21661242d748c6f96 Mon Sep 17 00:00:00 2001 From: Johannes Kauffmann Date: Fri, 12 Aug 2022 16:34:34 +0000 Subject: [PATCH] aribcam: remove duplicate const modules/stream_filter/aribcam.c:54:38: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] 54 | static const struct error_messages_s const b25_errors[] = | ^~~~~ modules/stream_filter/aribcam.c:75:38: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] 75 | static const struct error_messages_s const bcas_errors[] = | ^~~~~ modules/stream_filter/aribcam.c:99:62: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] 99 | const struct error_messages_s const *p_errors_messages ) | ^~~~~ --- modules/stream_filter/aribcam.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/stream_filter/aribcam.c b/modules/stream_filter/aribcam.c index e60958ff11..919ffcb1d8 100644 --- a/modules/stream_filter/aribcam.c +++ b/modules/stream_filter/aribcam.c @@ -51,7 +51,7 @@ struct error_messages_s const char * const psz_error; }; -static const struct error_messages_s const b25_errors[] = +static const struct error_messages_s b25_errors[] = { { ARIB_STD_B25_ERROR_INVALID_PARAM, "Invalid parameter" }, { ARIB_STD_B25_ERROR_NO_ENOUGH_MEMORY , "Not enough memory" }, @@ -72,7 +72,7 @@ static const struct error_messages_s const b25_errors[] = { 0, NULL }, }; -static const struct error_messages_s const bcas_errors[] = +static const struct error_messages_s bcas_errors[] = { { B_CAS_CARD_ERROR_INVALID_PARAMETER, "Invalid parameter" }, { B_CAS_CARD_ERROR_NOT_INITIALIZED, "Card not initialized" }, @@ -96,7 +96,7 @@ typedef struct } stream_sys_t; static const char * GetErrorMessage( const int i_error, - const struct error_messages_s const *p_errors_messages ) + const struct error_messages_s *p_errors_messages ) { int i = 0; while( p_errors_messages[i].psz_error )