summaryrefslogtreecommitdiff
path: root/lib/splay.c
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2016-04-07 13:35:45 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2016-04-07 13:43:56 +0900
commit2bc9d6bb53df44a0c5174767de734620c2cdfd9e (patch)
tree5f133be6bde9bc9fc0052463887018d5a4a61686 /lib/splay.c
parent727561ff7338bff27c3cae5c5f3cbf9c1a3b56e1 (diff)
parent8a08705db260779441360e959b97b6c172f8acb0 (diff)
downloadcurl-2bc9d6bb53df44a0c5174767de734620c2cdfd9e.tar.gz
curl-2bc9d6bb53df44a0c5174767de734620c2cdfd9e.tar.bz2
curl-2bc9d6bb53df44a0c5174767de734620c2cdfd9e.zip
Change-Id: I5b1e06765d1fe3c75597ff7db9831228ea0cad05 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
Diffstat (limited to 'lib/splay.c')
-rw-r--r--lib/splay.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/splay.c b/lib/splay.c
index 5bb7065e4..b87b6cfe2 100644
--- a/lib/splay.c
+++ b/lib/splay.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1997 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1997 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -101,13 +101,13 @@ struct Curl_tree *Curl_splayinsert(struct timeval i,
struct Curl_tree *t,
struct Curl_tree *node)
{
- static const 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;
if(t != NULL) {
- t = Curl_splay(i,t);
+ t = Curl_splay(i, t);
if(compare(i, t->key)==0) {
/* There already exists a node in the tree with the very same key. Build
a linked list of nodes. We make the new 'node' struct the new master
@@ -162,7 +162,7 @@ struct Curl_tree *Curl_splaygetbest(struct timeval i,
return NULL;
}
- t = Curl_splay(i,t);
+ t = Curl_splay(i, t);
if(compare(i, t->key) < 0) {
/* too big node, try the smaller chain */
if(t->smaller)
@@ -223,7 +223,7 @@ int Curl_splayremovebyaddr(struct Curl_tree *t,
struct Curl_tree *removenode,
struct Curl_tree **newroot)
{
- static const 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)