mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:53:36 +03:00
cleanup: constify unmodified static structs
Constify a number of static structs that are never modified. Make them const to show this. Closes #7759
This commit is contained in:
parent
c7aef0a945
commit
e75be2c4b2
10 changed files with 20 additions and 20 deletions
|
|
@ -374,7 +374,7 @@ static void krb5_end(void *app_data)
|
|||
}
|
||||
}
|
||||
|
||||
static struct Curl_sec_client_mech Curl_krb5_client_mech = {
|
||||
static const struct Curl_sec_client_mech Curl_krb5_client_mech = {
|
||||
"GSSAPI",
|
||||
sizeof(gss_ctx_id_t),
|
||||
krb5_init,
|
||||
|
|
|
|||
|
|
@ -3180,7 +3180,7 @@ CURLMcode curl_multi_socket_all(struct Curl_multi *multi, int *running_handles)
|
|||
static CURLMcode multi_timeout(struct Curl_multi *multi,
|
||||
long *timeout_ms)
|
||||
{
|
||||
static struct curltime tv_zero = {0, 0};
|
||||
static const struct curltime tv_zero = {0, 0};
|
||||
|
||||
if(multi->timetree) {
|
||||
/* we have a tree of expire times */
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue