openbsd-ports/audio/rhythmbox/patches/patch-plugins_audioscrobbler_rb-audioscrobbler-entry_c
2012-03-12 07:42:11 +00:00

33 lines
1.3 KiB
Plaintext

$OpenBSD: patch-plugins_audioscrobbler_rb-audioscrobbler-entry_c,v 1.2 2012/03/12 07:42:11 ajacoutot Exp $
warning: format '%ld' expects type 'long int', but argument 2 has type 'time_t'
--- plugins/audioscrobbler/rb-audioscrobbler-entry.c.orig Sun Mar 11 09:56:46 2012
+++ plugins/audioscrobbler/rb-audioscrobbler-entry.c Mon Mar 12 08:03:21 2012
@@ -144,7 +144,7 @@ rb_audioscrobbler_entry_encode (AudioscrobblerEntry *e
encoded->mbid = soup_uri_encode (entry->mbid, EXTRA_URI_ENCODE_CHARS);
- encoded->timestamp = g_strdup_printf("%ld", (long)entry->play_time);
+ encoded->timestamp = g_strdup_printf("%d", (long)entry->play_time);
encoded->length = entry->length;
encoded->source = g_strdup (entry->source);
@@ -215,7 +215,7 @@ rb_audioscrobbler_entry_save_to_string (GString *strin
encoded = rb_audioscrobbler_entry_encode (entry);
g_string_append_printf (string,
- "a=%s&t=%s&b=%s&m=%s&l=%d&i=%ld\n",
+ "a=%s&t=%s&b=%s&m=%s&l=%d&i=%d\n",
encoded->artist,
encoded->title,
encoded->album,
@@ -232,6 +232,6 @@ rb_audioscrobbler_entry_debug (AudioscrobblerEntry *en
rb_debug (" album: %s", entry->album);
rb_debug (" title: %s", entry->title);
rb_debug (" length: %d", entry->length);
- rb_debug (" playtime: %ld", (long)entry->play_time);
+ rb_debug (" playtime: %d", (long)entry->play_time);
}