[vlc-commits] Remove untenable const qualifiers from vlc_atomic_get()

Rémi Denis-Courmont git at videolan.org
Thu Aug 23 20:05:17 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 23 20:43:28 2012 +0300| [2e186c72e07564d391a22ac2e3e5badc6cc66cc2] | committer: Rémi Denis-Courmont

Remove untenable const qualifiers from vlc_atomic_get()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e186c72e07564d391a22ac2e3e5badc6cc66cc2
---

 include/vlc_atomic.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc_atomic.h b/include/vlc_atomic.h
index 051e1ae..5892994 100644
--- a/include/vlc_atomic.h
+++ b/include/vlc_atomic.h
@@ -215,7 +215,7 @@ typedef union
 # define VLC_ATOMIC_INIT(val) { (val) }
 
 /* All functions return the atom value _after_ the operation. */
-static inline uintptr_t vlc_atomic_get(const vlc_atomic_t *atom)
+static inline uintptr_t vlc_atomic_get(vlc_atomic_t *atom)
 {
     return atomic_load(&atom->u);
 }
@@ -258,7 +258,7 @@ static inline uintptr_t vlc_atomic_compare_swap(vlc_atomic_t *atom,
 }
 
 /** Helper to retrieve a single precision from an atom. */
-static inline float vlc_atomic_getf(const vlc_atomic_t *atom)
+static inline float vlc_atomic_getf(vlc_atomic_t *atom)
 {
     union { float f; uintptr_t i; } u;
     u.i = vlc_atomic_get(atom);



More information about the vlc-commits mailing list