From cbd1a77ec24e397d05f20c6de106625676343c9d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 7 Nov 2007 09:21:35 +0000 Subject: if () => if() while () => while() and some other minor re-indentings --- lib/llist.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/llist.c') diff --git a/lib/llist.c b/lib/llist.c index 921d1d1f9..0ace1bdd4 100644 --- a/lib/llist.c +++ b/lib/llist.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2006, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2007, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -68,7 +68,7 @@ Curl_llist_insert_next(struct curl_llist *list, struct curl_llist_element *e, return 0; ne->ptr = (void *) p; - if (list->size == 0) { + if(list->size == 0) { list->head = ne; list->head->prev = NULL; list->head->next = NULL; @@ -77,7 +77,7 @@ Curl_llist_insert_next(struct curl_llist *list, struct curl_llist_element *e, else { ne->next = e->next; ne->prev = e; - if (e->next) { + if(e->next) { e->next->prev = ne; } else { @@ -95,19 +95,19 @@ int Curl_llist_remove(struct curl_llist *list, struct curl_llist_element *e, void *user) { - if (e == NULL || list->size == 0) + if(e == NULL || list->size == 0) return 1; - if (e == list->head) { + if(e == list->head) { list->head = e->next; - if (list->head == NULL) + if(list->head == NULL) list->tail = NULL; else e->next->prev = NULL; } else { e->prev->next = e->next; - if (!e->next) + if(!e->next) list->tail = e->prev; else e->next->prev = e->prev; @@ -124,7 +124,7 @@ void Curl_llist_destroy(struct curl_llist *list, void *user) { if(list) { - while (list->size > 0) + while(list->size > 0) Curl_llist_remove(list, list->tail, user); free(list); -- cgit v1.2.3