mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
refcount: Constify refcount_load()
Reviewed by: markj Approved by: markj (mentor) MFC after: 5 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46888 (cherry picked from commit 9dc5b3dbb063f55543ff8a0619eee2e294fb7dc5)
This commit is contained in:
parent
1fc5db8e9f
commit
2e866a1ea9
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ refcount_init(volatile u_int *count, u_int value)
|
|||
}
|
||||
|
||||
static __inline u_int
|
||||
refcount_load(volatile u_int *count)
|
||||
refcount_load(volatile const u_int *count)
|
||||
{
|
||||
return (atomic_load_int(count));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue