[mafw-lastfm-devel] [PATCH mafw-lastfm 07/12] Subtle cleanups

Felipe Contreras felipe.contreras at gmail.com
Thu Jan 14 18:33:53 EET 2010


I guess these might cause some warnings:
 * () is not allowed on functions
 * track->length is signed

Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
 mafw-lastfm/mafw-lastfm-scrobbler.c |    2 +-
 mafw-lastfm/mafw-lastfm.c           |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mafw-lastfm/mafw-lastfm-scrobbler.c b/mafw-lastfm/mafw-lastfm-scrobbler.c
index c1ee469..7cf281e 100644
--- a/mafw-lastfm/mafw-lastfm-scrobbler.c
+++ b/mafw-lastfm/mafw-lastfm-scrobbler.c
@@ -326,7 +326,7 @@ mafw_lastfm_scrobbler_set_playing_now (MafwLastfmScrobbler *scrobbler,
   g_return_if_fail (encoded);
   g_return_if_fail (scrobbler->priv->status == MAFW_LASTFM_SCROBBLER_READY);
 
-  post_data = g_strdup_printf ("s=%s&a=%s&t=%s&b=%s&l=%lli&n=%u&m=",
+  post_data = g_strdup_printf ("s=%s&a=%s&t=%s&b=%s&l=%lli&n=%s&m=",
                                scrobbler->priv->session_id,
                                encoded->artist,
                                encoded->title,
diff --git a/mafw-lastfm/mafw-lastfm.c b/mafw-lastfm/mafw-lastfm.c
index 98d76f4..90cfe9c 100644
--- a/mafw-lastfm/mafw-lastfm.c
+++ b/mafw-lastfm/mafw-lastfm.c
@@ -225,7 +225,7 @@ monitor_credentials_file (const gchar *path,
   g_object_unref (file);
 }
 
-int main ()
+int main (void)
 {
   GError *error = NULL;
   MafwRegistry *registry;
-- 
1.6.6


More information about the mafw-lastfm-devel mailing list