From f1aac1eb379f561dd95141f6ba021757cc9ed15e Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Fri, 10 Apr 2015 06:43:41 +0000 Subject: [PATCH] Added comments. FossilOrigin-Name: c7cdfca78936dc9c9167a0f0761aa67403f7c2047eef6793d6361e38b99fdfe4 --- src/capwap/avliter_next.c | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/capwap/avliter_next.c b/src/capwap/avliter_next.c index e6f48abc..5e97f332 100644 --- a/src/capwap/avliter_next.c +++ b/src/capwap/avliter_next.c @@ -1,6 +1,33 @@ +/* + This file is part of libcapwap. + + libcapwap is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + libcapwap is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Foobar. If not, see . + +*/ + +/** + *@file + *@brief Implementation of avliter_next + */ + #include "avltree.h" - +/** + * Get the next element within an AVL Tree. + * @param i pointer to AVL Iterator + * @return the element or NULL if there is no next elemeent. + */ void * avliter_next(avliter_t *i) { @@ -30,7 +57,6 @@ void * avliter_next(avliter_t *i) /* push node */ i->stack[i->stack_ptr++]=i->cur; - i->cur=i->cur->left; }