diff options
-rw-r--r-- | libskype.c | 10 | ||||
-rw-r--r-- | skype_events.c | 3 |
2 files changed, 9 insertions, 4 deletions
@@ -40,7 +40,9 @@ #include <glib.h> #include <glib/gstdio.h> -#include <unistd.h> +#if __GNUC__ +# include <unistd.h> +#endif #include <string.h> //#include <internal.h> @@ -627,8 +629,8 @@ skype_node_menu(PurpleBlistNode *node) if (temp && *temp && temp[5] && temp[6]) { gchar **ids = g_strsplit(&temp[6], ", ", 0); - g_free(temp); gchar **buddy_calls = NULL; + g_free(temp); temp = skype_send_message("SEARCH CALLS %s", buddy->name); if (temp && *temp && temp[5] && temp[6]) { @@ -2373,9 +2375,11 @@ skype_group_buddy(PurpleConnection *gc, const char *who, const char *old_group, group_number = skype_find_group_with_name(new_group); if (group_number <= 0) { + struct _cheat_skype_group_buddy_struct *cheat; if (group_number == 0) skype_send_message_nowait("CREATE GROUP %s", new_group); - struct _cheat_skype_group_buddy_struct *cheat = g_new(struct _cheat_skype_group_buddy_struct, 1); + + cheat = g_new(struct _cheat_skype_group_buddy_struct, 1); cheat->gc = gc; cheat->who = g_strdup(who); cheat->old_group = old_group?g_strdup(old_group):NULL; diff --git a/skype_events.c b/skype_events.c index 9e8dfab..0b4887e 100644 --- a/skype_events.c +++ b/skype_events.c @@ -1140,6 +1140,7 @@ handle_complete_message(int messagenumber) { SkypeMessage *skypemessage = NULL; SkypeChat *chat = NULL; + PurpleBuddy *buddy = NULL; gchar *body_html = NULL; xmlnode *xmlblob, *nodi; int i; @@ -1349,7 +1350,7 @@ handle_complete_message(int messagenumber) case SKYPE_MESSAGE_EDITED: if (!skypemessage->body || !skypemessage->from_handle || !skypemessage->timestamp) return FALSE; - PurpleBuddy *buddy = purple_find_buddy(skypemessage->account, skypemessage->from_handle); + buddy = purple_find_buddy(skypemessage->account, skypemessage->from_handle); body_html = g_strdup_printf("%s edited message '%s'", (buddy&&buddy->alias?buddy->alias:skypemessage->from_handle), skypemessage->body); g_free(skypemessage->body); skypemessage->body = body_html; |