Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/gen constify
details: https://anonhg.NetBSD.org/src/rev/32b6c02abab3
branches: trunk
changeset: 770368:32b6c02abab3
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Oct 14 16:10:47 2011 +0000
description:
constify
diffstat:
common/lib/libc/gen/radixtree.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diffs (65 lines):
diff -r 2b7f86ffd75e -r 32b6c02abab3 common/lib/libc/gen/radixtree.c
--- a/common/lib/libc/gen/radixtree.c Fri Oct 14 16:06:05 2011 +0000
+++ b/common/lib/libc/gen/radixtree.c Fri Oct 14 16:10:47 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radixtree.c,v 1.12 2011/10/14 16:06:05 yamt Exp $ */
+/* $NetBSD: radixtree.c,v 1.13 2011/10/14 16:10:47 yamt Exp $ */
/*-
* Copyright (c)2011 YAMAMOTO Takashi,
@@ -41,7 +41,7 @@
#include <sys/cdefs.h>
#if defined(_KERNEL) || defined(_STANDALONE)
-__KERNEL_RCSID(0, "$NetBSD: radixtree.c,v 1.12 2011/10/14 16:06:05 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radixtree.c,v 1.13 2011/10/14 16:10:47 yamt Exp $");
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/pool.h>
@@ -51,7 +51,7 @@
#include <lib/libsa/stand.h>
#endif /* defined(_STANDALONE) */
#else /* defined(_KERNEL) || defined(_STANDALONE) */
-__RCSID("$NetBSD: radixtree.c,v 1.12 2011/10/14 16:06:05 yamt Exp $");
+__RCSID("$NetBSD: radixtree.c,v 1.13 2011/10/14 16:10:47 yamt Exp $");
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
@@ -136,7 +136,7 @@
*/
static unsigned int
-any_children_tagmask(struct radix_tree_node *n)
+any_children_tagmask(const struct radix_tree_node *n)
{
unsigned int mask;
int i;
@@ -165,7 +165,7 @@
};
static inline void **
-path_pptr(struct radix_tree *t, struct radix_tree_path *p,
+path_pptr(const struct radix_tree *t, const struct radix_tree_path *p,
unsigned int height)
{
@@ -174,7 +174,8 @@
}
static inline struct radix_tree_node *
-path_node(struct radix_tree * t, struct radix_tree_path *p, unsigned int height)
+path_node(const struct radix_tree * t, const struct radix_tree_path *p,
+ unsigned int height)
{
KASSERT(height <= t->t_height);
@@ -182,7 +183,8 @@
}
static inline unsigned int
-path_idx(struct radix_tree * t, struct radix_tree_path *p, unsigned int height)
+path_idx(const struct radix_tree * t, const struct radix_tree_path *p,
+ unsigned int height)
{
KASSERT(height <= t->t_height);
Home |
Main Index |
Thread Index |
Old Index