diff options
Diffstat (limited to 'lib/util/idtree.c')
-rw-r--r-- | lib/util/idtree.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/util/idtree.c b/lib/util/idtree.c index 6f1a4ac9dd..0056c0961a 100644 --- a/lib/util/idtree.c +++ b/lib/util/idtree.c @@ -1,4 +1,4 @@ -/* +/* Unix SMB/CIFS implementation. very efficient functions to manage mapping a id (such as a fnum) to @@ -6,20 +6,20 @@ Copyright (C) Andrew Tridgell 2004 - This code is derived from lib/idr.c in the 2.6 Linux kernel, which was + This code is derived from lib/idr.c in the 2.6 Linux kernel, which was written by Jim Houston jim.houston@ccur.com, and is Copyright (C) 2002 by Concurrent Computer Corporation - + This program 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 2 of the License, or (at your option) any later version. - + This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ @@ -53,7 +53,7 @@ #define set_bit(bit, v) (v) |= (1<<(bit)) #define clear_bit(bit, v) (v) &= ~(1<<(bit)) #define test_bit(bit, v) ((v) & (1<<(bit))) - + struct idr_layer { uint32_t bitmap; struct idr_layer *ary[IDR_SIZE]; @@ -195,7 +195,7 @@ static int idr_get_new_above_int(struct idr_context *idp, void *ptr, int startin int layers, v, id; idr_pre_get(idp); - + id = starting_id; build_up: p = idp->top; @@ -309,7 +309,7 @@ static int _idr_remove(struct idr_context *idp, int id) return -1; } - if ( idp->top && idp->top->count == 1 && + if ( idp->top && idp->top->count == 1 && (idp->layers > 1) && idp->top->ary[0]) { /* We can drop a layer */ |