From e75be2c4b20ced981606c1338759ac3dc6edc309 Mon Sep 17 00:00:00 2001 From: Rikard Falkeborn Date: Wed, 22 Sep 2021 00:21:03 +0200 Subject: cleanup: constify unmodified static structs Constify a number of static structs that are never modified. Make them const to show this. Closes #7759 --- lib/splay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/splay.c') diff --git a/lib/splay.c b/lib/splay.c index a94e2c85e..1c1dafb92 100644 --- a/lib/splay.c +++ b/lib/splay.c @@ -154,7 +154,7 @@ struct Curl_tree *Curl_splaygetbest(struct curltime i, struct Curl_tree *t, struct Curl_tree **removed) { - static struct curltime tv_zero = {0, 0}; + static const struct curltime tv_zero = {0, 0}; struct Curl_tree *x; if(!t) { -- cgit v1.2.1