changeset 17868:6820304c215f

Removed some C99-code
author Andreas Monitzer <pidgin@monitzer.com>
date Mon, 18 Jun 2007 13:54:26 +0000
parents b748e602c951
children 6842cc73b1b7
files libpurple/protocols/jabber/usertune.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }