[gnome-games] fix warnings on 64bit build
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] fix warnings on 64bit build
- Date: Mon, 6 Dec 2010 18:30:27 +0000 (UTC)
commit 4cbeee04edf28bc9bfb03c8b45a55731c27ad1fe
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Mon Dec 6 19:30:02 2010 +0100
fix warnings on 64bit build
aisleriot/window.c | 2 +-
libgames-support/games-scores-backend.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/aisleriot/window.c b/aisleriot/window.c
index 41596ed..45f8028 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -1352,7 +1352,7 @@ install_recently_played_menu (AisleriotWindow *window)
char actionname[32];
char *game_name, *tooltip;
- g_snprintf (actionname, sizeof (actionname), "Recent%d", i);
+ g_snprintf (actionname, sizeof (actionname), "Recent%"G_GSIZE_FORMAT, i);
game_name = games_filename_to_display_name (recent_games[i]);
#ifdef HAVE_HILDON
tooltip = NULL;
diff --git a/libgames-support/games-scores-backend.c b/libgames-support/games-scores-backend.c
index c93330f..1ee04f5 100644
--- a/libgames-support/games-scores-backend.c
+++ b/libgames-support/games-scores-backend.c
@@ -302,7 +302,7 @@ games_scores_backend_set_scores (GamesScoresBackend * self, GList * list)
rtime = d->time;
rname = d->name;
- buffer = g_strdup_printf ("%s %lld %s\n",
+ buffer = g_strdup_printf ("%s %"G_GUINT64_FORMAT" %s\n",
g_ascii_dtostr (dtostrbuf, sizeof (dtostrbuf),
rscore), rtime, rname);
setgid_io_write (self->priv->fd, buffer, strlen (buffer));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]