r3827 - trunk/varnish-cache/lib/libvarnish

tfheen at projects.linpro.no tfheen at projects.linpro.no
Wed Feb 25 12:40:39 CET 2009


Author: tfheen
Date: 2009-02-25 12:40:39 +0100 (Wed, 25 Feb 2009)
New Revision: 3827

Modified:
   trunk/varnish-cache/lib/libvarnish/vsha256.c
Log:
Replace __inline with inline

C99 standardised "inline" and the Sun compiler doesn't like __inline,
so change to using inline consistently.


Modified: trunk/varnish-cache/lib/libvarnish/vsha256.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/vsha256.c	2009-02-25 10:50:49 UTC (rev 3826)
+++ trunk/varnish-cache/lib/libvarnish/vsha256.c	2009-02-25 11:40:39 UTC (rev 3827)
@@ -45,7 +45,7 @@
 #include "libvarnish.h"
 #include "vsha256.h"
 
-static __inline void
+static inline void
 mybe32enc(void *pp, uint32_t u)
 {
         unsigned char *p = (unsigned char *)pp;
@@ -56,7 +56,7 @@
         p[3] = u & 0xff;
 }
 
-static __inline void
+static inline void
 mybe64enc(void *pp, uint64_t u)
 {
 	unsigned char *p = (unsigned char *)pp;
@@ -77,7 +77,7 @@
 
 #else /* BYTE_ORDER != BIG_ENDIAN or in doubt... */
 
-static __inline uint32_t
+static inline uint32_t
 mybe32dec(const void *pp)
 {
         unsigned char const *p = (unsigned char const *)pp;



More information about the varnish-commit mailing list