]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
utils: Remove volatile qualifier from refcount_t typedef
authorTobias Brunner <tobias@strongswan.org>
Wed, 19 Jun 2013 07:20:35 +0000 (09:20 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 19 Jun 2013 07:28:30 +0000 (09:28 +0200)
It's not really required anymore (if it ever was) and may cause compiler
warnings when using the non atomic versions of ref_get/ref_put.

src/libstrongswan/utils/utils.h

index 8cc48513be6a0fa17c521273b72b3c9b7eddd491..06282de554351d758e0d2afc061ab38953a93904 100644 (file)
@@ -656,8 +656,7 @@ static inline u_int64_t untoh64(void *network)
 /**
  * Special type to count references
  */
-typedef volatile u_int refcount_t;
-
+typedef u_int refcount_t;
 
 #ifdef HAVE_GCC_ATOMIC_OPERATIONS