diff options
author | Eion Robb <eion@robbmob.com> | 2011-11-29 05:07:14 +0400 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2011-11-29 05:07:14 +0400 |
commit | 9e22c4c01fccb76a21b694d56c6a735f3ba39239 (patch) | |
tree | d0512e646823d236479acf9842db8c0308d6c0e1 /libskype.c | |
parent | 96c53a19c73b05e89af12f25e2a551defdc62a25 (diff) |
Add patch from joel.low91 to provide C89 compatibility. Fixes issue #168
Diffstat (limited to 'libskype.c')
-rw-r--r-- | libskype.c | 10 |
1 files changed, 7 insertions, 3 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; |