summaryrefslogtreecommitdiff
path: root/plugins/lastfm
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-04 19:45:35 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-04 19:45:35 +0200
commitf31784859de08fc05b8a744e7fe8d713693734b9 (patch)
tree2a308acb3c6530f05a5c0b30ffabc30fbd1abe55 /plugins/lastfm
parent9ca2a9c5ceaabb9f5db53ae85ab1179dbd6e4d2b (diff)
fixed lots of gcc warnings
Diffstat (limited to 'plugins/lastfm')
-rw-r--r--plugins/lastfm/lastfm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c
index 06e462f8..986bd03f 100644
--- a/plugins/lastfm/lastfm.c
+++ b/plugins/lastfm/lastfm.c
@@ -196,15 +196,15 @@ auth (void) {
char token[100];
deadbeef->md5 (sig, lfm_pass, strlen (lfm_pass));
deadbeef->md5_to_str (passmd5, sig);
- snprintf (token, sizeof (token), "%s%d", passmd5, timestamp);
+ snprintf (token, sizeof (token), "%s%d", passmd5, (int)timestamp);
deadbeef->md5 (sig, token, strlen (token));
deadbeef->md5_to_str (token, sig);
const char *scrobbler_url = deadbeef->conf_get_str ("lastfm.scrobbler_url", SCROBBLER_URL_LFM);
#if LFM_TESTMODE
- snprintf (req, sizeof (req), "%s/?hs=true&p=1.2.1&c=tst&v=1.0&u=%s&t=%d&a=%s", scrobbler_url, lfm_user, timestamp, token);
+ snprintf (req, sizeof (req), "%s/?hs=true&p=1.2.1&c=tst&v=1.0&u=%s&t=%d&a=%s", scrobbler_url, lfm_user, (int)timestamp, token);
#else
- snprintf (req, sizeof (req), "%s/?hs=true&p=1.2.1&c=%s&v=%d.%d&u=%s&t=%d&a=%s", scrobbler_url, LFM_CLIENTID, plugin.plugin.version_major, plugin.plugin.version_minor, lfm_user, timestamp, token);
+ snprintf (req, sizeof (req), "%s/?hs=true&p=1.2.1&c=%s&v=%d.%d&u=%s&t=%d&a=%s", scrobbler_url, LFM_CLIENTID, plugin.plugin.version_major, plugin.plugin.version_minor, lfm_user, (int)timestamp, token);
#endif
// handshake
int status = curl_req_send (req, NULL);