diff mbox

[5/5] lib: fwts_log_html: constify fwts_log_html_ascii_table[]

Message ID 20161019123755.29811-6-colin.king@canonical.com
State Accepted
Headers show

Commit Message

Colin Ian King Oct. 19, 2016, 12:37 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 src/lib/src/fwts_log_html.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alex Hung Oct. 19, 2016, 5:29 p.m. UTC | #1
On 2016-10-19 05:37 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  src/lib/src/fwts_log_html.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lib/src/fwts_log_html.c b/src/lib/src/fwts_log_html.c
> index d1ab56b..72f9c7e 100644
> --- a/src/lib/src/fwts_log_html.c
> +++ b/src/lib/src/fwts_log_html.c
> @@ -44,7 +44,7 @@ typedef struct {
>   * ISO 10646, ISO 8879, ISO 8859-1 Latin alphabet No. 1
>   * Browser support: All browsers
>   */
> -static fwts_log_html_ascii_t fwts_log_html_ascii_table[] = {
> +static const fwts_log_html_ascii_t fwts_log_html_ascii_table[] = {
>  	{ '"',	"&quot;" },
>  	{ '&', 	"&amp;" },
>  	{ '<', 	"&lt;" },
>

Acked-by: Alex Hung <alex.hung@canonical.com>
Ivan Hu Oct. 24, 2016, 8:01 a.m. UTC | #2
On 2016年10月19日 20:37, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  src/lib/src/fwts_log_html.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lib/src/fwts_log_html.c b/src/lib/src/fwts_log_html.c
> index d1ab56b..72f9c7e 100644
> --- a/src/lib/src/fwts_log_html.c
> +++ b/src/lib/src/fwts_log_html.c
> @@ -44,7 +44,7 @@ typedef struct {
>   * ISO 10646, ISO 8879, ISO 8859-1 Latin alphabet No. 1
>   * Browser support: All browsers
>   */
> -static fwts_log_html_ascii_t fwts_log_html_ascii_table[] = {
> +static const fwts_log_html_ascii_t fwts_log_html_ascii_table[] = {
>  	{ '"',	"&quot;" },
>  	{ '&', 	"&amp;" },
>  	{ '<', 	"&lt;" },
>

Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff mbox

Patch

diff --git a/src/lib/src/fwts_log_html.c b/src/lib/src/fwts_log_html.c
index d1ab56b..72f9c7e 100644
--- a/src/lib/src/fwts_log_html.c
+++ b/src/lib/src/fwts_log_html.c
@@ -44,7 +44,7 @@  typedef struct {
  * ISO 10646, ISO 8879, ISO 8859-1 Latin alphabet No. 1
  * Browser support: All browsers
  */
-static fwts_log_html_ascii_t fwts_log_html_ascii_table[] = {
+static const fwts_log_html_ascii_t fwts_log_html_ascii_table[] = {
 	{ '"',	"&quot;" },
 	{ '&', 	"&amp;" },
 	{ '<', 	"&lt;" },