diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2014-04-29 00:05:19 +0200 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2014-04-29 00:05:19 +0200 |
commit | ef1322df67d2f9d8aef330330bff9e74d59ee0a5 (patch) | |
tree | bc46185c2e96db01d12d42c0718b5c2a03149ed4 /lib/splay.c | |
parent | 970ce28c12ddcf7ca0b3edd1446e34ea9cfb5cd1 (diff) | |
download | curl-ef1322df67d2f9d8aef330330bff9e74d59ee0a5.tar.gz |
Added a few more const where possible
Diffstat (limited to 'lib/splay.c')
-rw-r--r-- | lib/splay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/splay.c b/lib/splay.c index 3570712d4..129d24476 100644 --- a/lib/splay.c +++ b/lib/splay.c @@ -101,7 +101,7 @@ struct Curl_tree *Curl_splayinsert(struct timeval i, struct Curl_tree *t, struct Curl_tree *node) { - static struct timeval KEY_NOTUSED = {-1,-1}; /* will *NEVER* appear */ + static const struct timeval KEY_NOTUSED = {-1,-1}; /* will *NEVER* appear */ if(node == NULL) return t; @@ -223,7 +223,7 @@ int Curl_splayremovebyaddr(struct Curl_tree *t, struct Curl_tree *removenode, struct Curl_tree **newroot) { - static struct timeval KEY_NOTUSED = {-1,-1}; /* will *NEVER* appear */ + static const struct timeval KEY_NOTUSED = {-1,-1}; /* will *NEVER* appear */ struct Curl_tree *x; if(!t || !removenode) |