diff options
| author | Rusty Russell <trivial@rustcorp.com.au> | 2003-10-04 21:30:51 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-10-04 21:30:51 -0700 |
| commit | f92f186d8f9377149b0cf81fdcf4e94aead591e8 (patch) | |
| tree | fe0b23638ba31743824cc983413f87b6de243544 /include/linux | |
| parent | 34ce1ab75f636e363ee516fc1493388e003a80fb (diff) | |
[PATCH] hlist constification
From: Mitchell Blank Jr <mitch@sfgoth.com>
Make some more of the hlist functions accept constant arguments.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/list.h b/include/linux/list.h index 5fdf945bbf93..beed16b82895 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -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; } |
