]> git.sesse.net Git - vlc/commitdiff
Remove untenable const qualifiers from vlc_atomic_get()
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 23 Aug 2012 17:43:28 +0000 (20:43 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 23 Aug 2012 18:01:50 +0000 (21:01 +0300)
include/vlc_atomic.h

index 051e1ae1e6ecc3e9b9a3b8dbfdb096a73d1c600d..58929949bcd3cb2180e225a04dc80f04f7efeb4e 100644 (file)
@@ -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);