Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2011-11-29 05:07:14 +0400
committerEion Robb <eion@robbmob.com>2011-11-29 05:07:14 +0400
commit9e22c4c01fccb76a21b694d56c6a735f3ba39239 (patch)
treed0512e646823d236479acf9842db8c0308d6c0e1 /libskype.c
parent96c53a19c73b05e89af12f25e2a551defdc62a25 (diff)
Add patch from joel.low91 to provide C89 compatibility. Fixes issue #168
Diffstat (limited to 'libskype.c')
-rw-r--r--libskype.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libskype.c b/libskype.c
index 7c7eb01..a5a006e 100644
--- a/libskype.c
+++ b/libskype.c
@@ -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;