[lasem/lasem-0-4] lsmdebug: avoid const cast warning.



commit defe0dd5e010379506896129cf7d9d4a619d8723
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Jan 6 20:24:30 2013 +0100

    lsmdebug: avoid const cast warning.

 src/lsmdebug.c |   15 ++++++++++-----
 src/lsmdebug.h |    5 +----
 2 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/src/lsmdebug.c b/src/lsmdebug.c
index 27ea1ef..320a291 100644
--- a/src/lsmdebug.c
+++ b/src/lsmdebug.c
@@ -25,33 +25,38 @@
 #include <glib/gprintf.h>
 #include <stdlib.h>
 
+struct _LsmDebugCategory {
+	char *name;
+	LsmDebugLevel level;
+};
+
 LsmDebugCategory lsm_debug_category_dom =
 {
-	.name = "dom",
+	.name = (char *) "dom",
 	.level = -1
 };
 
 LsmDebugCategory lsm_debug_category_measure =
 {
-	.name = "measure",
+	.name = (char *) "measure",
 	.level = -1
 };
 
 LsmDebugCategory lsm_debug_category_update =
 {
-	.name = "update",
+	.name = (char *) "update",
 	.level = -1
 };
 
 LsmDebugCategory lsm_debug_category_render =
 {
-	.name = "render",
+	.name = (char *) "render",
 	.level = -1
 };
 
 LsmDebugCategory lsm_debug_category_viewport =
 {
-	.name = "viewport",
+	.name = (char *) "viewport",
 	.level = -1
 };
 
diff --git a/src/lsmdebug.h b/src/lsmdebug.h
index 83ccc94..2a425d0 100644
--- a/src/lsmdebug.h
+++ b/src/lsmdebug.h
@@ -36,10 +36,7 @@ typedef enum {
 	LSM_DEBUG_LEVEL_COUNT
 } LsmDebugLevel;
 
-typedef struct {
-	char *name;
-	LsmDebugLevel level;
-} LsmDebugCategory;
+typedef struct _LsmDebugCategory LsmDebugCategory;
 
 extern LsmDebugCategory lsm_debug_category_dom;
 extern LsmDebugCategory lsm_debug_category_measure;



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