[rhythmbox] audioscrobbler: fix warnings where time_t is not a long int
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] audioscrobbler: fix warnings where time_t is not a long int
- Date: Sun, 11 Mar 2012 08:56:15 +0000 (UTC)
commit a792cb5a4f95862a97473d32f33a0398529b2bfd
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Mar 11 18:53:47 2012 +1000
audioscrobbler: fix warnings where time_t is not a long int
plugins/audioscrobbler/rb-audioscrobbler-entry.c | 6 +++---
plugins/audioscrobbler/rb-audioscrobbler.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-entry.c b/plugins/audioscrobbler/rb-audioscrobbler-entry.c
index 3e6d28f..cfac5fb 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-entry.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-entry.c
@@ -144,7 +144,7 @@ rb_audioscrobbler_entry_encode (AudioscrobblerEntry *entry)
encoded->mbid = soup_uri_encode (entry->mbid, EXTRA_URI_ENCODE_CHARS);
- encoded->timestamp = g_strdup_printf("%ld", entry->play_time);
+ encoded->timestamp = g_strdup_printf("%ld", (long)entry->play_time);
encoded->length = entry->length;
encoded->source = g_strdup (entry->source);
@@ -221,7 +221,7 @@ rb_audioscrobbler_entry_save_to_string (GString *string, AudioscrobblerEntry *en
encoded->album,
encoded->mbid,
encoded->length,
- entry->play_time);
+ (long)entry->play_time);
rb_audioscrobbler_encoded_entry_free (encoded);
}
@@ -232,6 +232,6 @@ rb_audioscrobbler_entry_debug (AudioscrobblerEntry *entry, int index)
rb_debug (" album: %s", entry->album);
rb_debug (" title: %s", entry->title);
rb_debug (" length: %d", entry->length);
- rb_debug (" playtime: %ld", entry->play_time);
+ rb_debug (" playtime: %ld", (long)entry->play_time);
}
diff --git a/plugins/audioscrobbler/rb-audioscrobbler.c b/plugins/audioscrobbler/rb-audioscrobbler.c
index 4eaaad0..3beab0e 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler.c
@@ -829,9 +829,9 @@ rb_audioscrobbler_should_handshake (RBAudioscrobbler *audioscrobbler)
}
if (time (NULL) < audioscrobbler->priv->handshake_next) {
- rb_debug ("Too soon; time=%lu, handshake_next=%lu",
- time (NULL),
- audioscrobbler->priv->handshake_next);
+ rb_debug ("Too soon; time=%ld, handshake_next=%ld",
+ (long)time (NULL),
+ (long)audioscrobbler->priv->handshake_next);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]