[gvdb] __value -> value to avoid stomping the C compiler



commit 291a5c9ed98cf5456c8d6af0c3113610646de7b3
Author: Ryan Lortie <desrt desrt ca>
Date:   Tue Apr 20 20:12:41 2010 -0400

    __value -> value to avoid stomping the C compiler

 gvdb-format.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gvdb-format.h b/gvdb-format.h
index 41c8254..f11a033 100644
--- a/gvdb-format.h
+++ b/gvdb-format.h
@@ -24,8 +24,8 @@
 
 #include <glib.h>
 
-typedef struct { guint16 __value; } guint16_le;
-typedef struct { guint32 __value; } guint32_le;
+typedef struct { guint16 value; } guint16_le;
+typedef struct { guint32 value; } guint32_le;
 
 struct gvdb_pointer {
   guint32_le start;
@@ -69,7 +69,7 @@ static inline guint32_le guint32_to_le (guint32 value) {
 }
 
 static inline guint32 guint32_from_le (guint32_le value) {
-  return GUINT32_FROM_LE (value.__value);
+  return GUINT32_FROM_LE (value.value);
 }
 
 static inline guint16_le guint16_to_le (guint16 value) {
@@ -78,7 +78,7 @@ static inline guint16_le guint16_to_le (guint16 value) {
 }
 
 static inline guint16 guint16_from_le (guint16_le value) {
-  return GUINT16_FROM_LE (value.__value);
+  return GUINT16_FROM_LE (value.value);
 }
 
 #define GVDB_SIGNATURE0 1918981703



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]