From: Tobias Brunner Date: Wed, 19 Jun 2013 07:20:35 +0000 (+0200) Subject: utils: Remove volatile qualifier from refcount_t typedef X-Git-Tag: 5.1.0dr1~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d04e2c63be30dda78fdc44602d1dd5889b209f6;p=thirdparty%2Fstrongswan.git utils: Remove volatile qualifier from refcount_t typedef 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. --- diff --git a/src/libstrongswan/utils/utils.h b/src/libstrongswan/utils/utils.h index 8cc48513be..06282de554 100644 --- a/src/libstrongswan/utils/utils.h +++ b/src/libstrongswan/utils/utils.h @@ -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