$OpenBSD: patch-plugins_audioscrobbler_rb-audioscrobbler-entry_c,v 1.1 2011/12/21 15:54:53 ajacoutot Exp $

warning: format '%ld' expects type 'long int', but argument 2 has type 'time_t'

--- plugins/audioscrobbler/rb-audioscrobbler-entry.c.orig	Wed Dec 21 16:17:17 2011
+++ plugins/audioscrobbler/rb-audioscrobbler-entry.c	Wed Dec 21 16:17:04 2011
@@ -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", entry->play_time);
+	encoded->timestamp = g_strdup_printf("%d", 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", entry->play_time);
+	rb_debug ("   playtime: %d", entry->play_time);
 }
 
