# HG changeset patch # User Andreas Monitzer # Date 1182174866 0 # Node ID 6820304c215f72fcb970bc0cad4121b314fe8dd9 # Parent b748e602c951b85393cf62a009252ea479761ed4 Removed some C99-code diff -r b748e602c951 -r 6820304c215f libpurple/protocols/jabber/usertune.c --- a/libpurple/protocols/jabber/usertune.c Mon Jun 18 12:48:16 2007 +0000 +++ b/libpurple/protocols/jabber/usertune.c Mon Jun 18 13:54:26 2007 +0000 @@ -33,6 +33,8 @@ JabberBuddy *buddy = jabber_buddy_find(js, from, FALSE); xmlnode *tuneinfo, *tune; PurpleJabberTuneInfo tuneinfodata; + JabberBuddyResource *resource; + const char *status_id; /* ignore the tune of people not on our buddy list */ if (!buddy || !item) @@ -74,8 +76,8 @@ } } } - JabberBuddyResource *resource = jabber_buddy_find_resource(buddy, NULL); - const char *status_id = jabber_buddy_state_get_status_id(resource->state); + resource = jabber_buddy_find_resource(buddy, NULL); + status_id = jabber_buddy_state_get_status_id(resource->state); purple_prpl_got_user_status(js->gc->account, from, status_id, PURPLE_TUNE_ARTIST, tuneinfodata.artist, PURPLE_TUNE_TITLE, tuneinfodata.title, PURPLE_TUNE_ALBUM, tuneinfodata.album, PURPLE_TUNE_TRACK, tuneinfodata.track, PURPLE_TUNE_TIME, tuneinfodata.time, PURPLE_TUNE_URL, tuneinfodata.url, NULL); }