Commit f92f186d authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] hlist constification

From:  Mitchell Blank Jr <mitch@sfgoth.com>

Make some more of the hlist functions accept constant arguments.
parent 34ce1ab7
......@@ -421,12 +421,12 @@ struct hlist_node {
#define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
#define INIT_HLIST_NODE(ptr) ((ptr)->next = NULL, (ptr)->pprev = NULL)
static __inline__ int hlist_unhashed(struct hlist_node *h)
static __inline__ int hlist_unhashed(const struct hlist_node *h)
{
return !h->pprev;
}
static __inline__ int hlist_empty(struct hlist_head *h)
static __inline__ int hlist_empty(const struct hlist_head *h)
{
return !h->first;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment