From 26f14c3162309115c87ed49fd4082e8cc27545d6 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 23 May 2020 20:30:17 -0700 Subject: [PATCH] Declare a static variable 'const' Signed-off-by: Bart Van Assche --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index f2d98fa6..bb450fff 100644 --- a/options.c +++ b/options.c @@ -19,7 +19,7 @@ char client_sockaddr_str[INET6_ADDRSTRLEN] = { 0 }; #define cb_data_to_td(data) container_of(data, struct thread_data, o) -static struct pattern_fmt_desc fmt_desc[] = { +static const struct pattern_fmt_desc fmt_desc[] = { { .fmt = "%o", .len = FIELD_SIZE(struct io_u *, offset), -- 2.25.1