[gnome-color-manager] Fix "cast increases required alignment of target type" [ia64] (Kamal Mostafa)



commit bb2411e42249913231ab9e65d6a46ff00b8c977e
Author: Robert Ancell <robert ancell gmail com>
Date:   Wed Mar 24 12:56:10 2010 +1100

    Fix "cast increases required alignment of target type" [ia64] (Kamal Mostafa)

 src/gcm-profile.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcm-profile.c b/src/gcm-profile.c
index 5712b97..57ff454 100644
--- a/src/gcm-profile.c
+++ b/src/gcm-profile.c
@@ -124,7 +124,7 @@ gcm_profile_parse (GcmProfile *profile, GFile *file, GError **error)
 {
 	gchar *data = NULL;
 	gboolean ret;
-	guint length;
+	gsize length;
 	gchar *filename = NULL;
 	GError *error_local = NULL;
 
@@ -132,7 +132,7 @@ gcm_profile_parse (GcmProfile *profile, GFile *file, GError **error)
 	g_return_val_if_fail (file != NULL, FALSE);
 
 	/* load files */
-	ret = g_file_load_contents (file, NULL, &data, (gsize *) &length, NULL, &error_local);
+	ret = g_file_load_contents (file, NULL, &data, &length, NULL, &error_local);
 	if (!ret) {
 		g_set_error (error, 1, 0, "failed to load profile: %s", error_local->message);
 		g_error_free (error_local);



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