[brasero] Fix some more warnings that appeared on 64 archs



commit 3d6591dd9c051d02697457134a5d7c1cf4fc090f
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Wed Sep 9 21:41:59 2009 +0200

    Fix some more warnings that appeared on 64 archs

 libbrasero-burn/brasero-session.c |    4 ++--
 plugins/cdrdao/burn-toc2cue.c     |    2 +-
 plugins/cdrkit/burn-wodim.c       |    2 +-
 plugins/cdrtools/burn-cdrecord.c  |    2 +-
 src/brasero-rename.c              |    4 ++--
 5 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libbrasero-burn/brasero-session.c b/libbrasero-burn/brasero-session.c
index 9d3e0c0..c76c633 100644
--- a/libbrasero-burn/brasero-session.c
+++ b/libbrasero-burn/brasero-session.c
@@ -1283,7 +1283,7 @@ brasero_burn_session_get_image_complement (BraseroBurnSession *self,
 	else if (format == BRASERO_IMAGE_FORMAT_CUE) {
 		if (g_str_has_suffix (path, ".bin"))
 			retval = g_strdup_printf ("%.*scue",
-						  strlen (path) - 3,
+						  (int) strlen (path) - 3,
 						  path);
 		else
 			retval = g_strdup_printf ("%s.cue", path);
@@ -1291,7 +1291,7 @@ brasero_burn_session_get_image_complement (BraseroBurnSession *self,
 	else if (format == BRASERO_IMAGE_FORMAT_CDRDAO) {
 		if (g_str_has_suffix (path, ".bin"))
 			retval = g_strdup_printf ("%.*stoc",
-						  strlen (path) - 3,
+						  (int) strlen (path) - 3,
 						  path);
 		else
 			retval = g_strdup_printf ("%s.toc", path);
diff --git a/plugins/cdrdao/burn-toc2cue.c b/plugins/cdrdao/burn-toc2cue.c
index c2f5b8f..4b74a39 100644
--- a/plugins/cdrdao/burn-toc2cue.c
+++ b/plugins/cdrdao/burn-toc2cue.c
@@ -139,7 +139,7 @@ brasero_toc2cue_read_stderr (BraseroProcess *process,
 
 			tmp = buffer;
 			buffer = g_strdup_printf ("%.*s%s%s",
-						  location - buffer,
+						  (int) (location - buffer),
 						  buffer,
 						  img_path,
 						  location + tmp_path_len);
diff --git a/plugins/cdrkit/burn-wodim.c b/plugins/cdrkit/burn-wodim.c
index 7d41ed9..8ed095f 100644
--- a/plugins/cdrkit/burn-wodim.c
+++ b/plugins/cdrkit/burn-wodim.c
@@ -438,7 +438,7 @@ brasero_wodim_write_inf (BraseroWodim *wodim,
 		separator = strrchr (path, G_DIR_SEPARATOR);
 
 		if (dot && dot > separator)
-			path = g_strdup_printf ("%.*s.inf", dot - path, path);
+			path = g_strdup_printf ("%.*s.inf", (int) (dot - path), path);
 		else
 			path = g_strdup_printf ("%s.inf", path);
 
diff --git a/plugins/cdrtools/burn-cdrecord.c b/plugins/cdrtools/burn-cdrecord.c
index 311dfdc..d3f8b6b 100644
--- a/plugins/cdrtools/burn-cdrecord.c
+++ b/plugins/cdrtools/burn-cdrecord.c
@@ -424,7 +424,7 @@ brasero_cdrecord_write_inf (BraseroCDRecord *cdrecord,
 
 		if (dot && dot > separator)
 			path = g_strdup_printf ("%.*s.inf",
-						dot - path,
+						(int) (dot - path),
 						path);
 		else
 			path = g_strdup_printf ("%s.inf",
diff --git a/src/brasero-rename.c b/src/brasero-rename.c
index f736f3f..ed86ca6 100644
--- a/src/brasero-rename.c
+++ b/src/brasero-rename.c
@@ -128,7 +128,7 @@ brasero_rename_delete_string (BraseroRename *self,
 	if (!occurence)
 		return NULL;
 
-	return g_strdup_printf ("%.*s%s", occurence - name, name, occurence + strlen (text));
+	return g_strdup_printf ("%.*s%s", (int) (occurence - name), name, occurence + strlen (text));
 }
 
 static gchar *
@@ -149,7 +149,7 @@ brasero_rename_substitute_string (BraseroRename *self,
 		return NULL;
 
 	joker = gtk_entry_get_text (GTK_ENTRY (priv->joker_entry));
-	return g_strdup_printf ("%.*s%s%s", occurence - name, name, joker, occurence + strlen (text));
+	return g_strdup_printf ("%.*s%s%s", (int) (occurence - name), name, joker, occurence + strlen (text));
 }
 
 static gchar *



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