org.guifications.plugins.autoprofile_merge: 130eca1f1da8b5065df3bc0a36ebf2a29574eaa9

rekkanoryo at guifications.org rekkanoryo at guifications.org
Sun Mar 23 12:55:08 CDT 2008


-----------------------------------------------------------------
Revision: 130eca1f1da8b5065df3bc0a36ebf2a29574eaa9
Ancestor: 96286fd575456440f62de0f8baecab151c44b949
Author: rekkanoryo at guifications.org
Date: 2008-03-23T04:09:33
Branch: org.guifications.plugins.autoprofile_merge

Modified files:
        autoprofile/comp_http.c autoprofile/comp_logstats.c

ChangeLog: 

Fix a few more errors...

-----------------------------------------------------------------
This revision's diffstat output:
 comp_http.c     |   10 ++++++----
 comp_logstats.c |    2 ++
 2 files changed, 8 insertions(+), 4 deletions(-)
-------------- next part --------------
============================================================
--- autoprofile/comp_http.c	8f9e5686d80c9146a87227399302614c56c0d3c5
+++ autoprofile/comp_http.c	51169f9a240bcbffdc687475ffea8365ba4b0d12
@@ -21,6 +21,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA *
  *--------------------------------------------------------------------------*/
 
+#include "../common/pp_internal.h"
+
 #include "component.h"
 
 static GHashTable *refresh_timeouts = NULL;
@@ -48,12 +50,12 @@ static char* http_generate (struct widge
 
   url = ap_prefs_get_string (w, "http_url");
   if (!url || url[0] == '\0') {
-    return strdup (_("[AutoProfile error: No URL specified]"));
+    return g_strdup (_("[AutoProfile error: No URL specified]"));
   }
 
   result = ap_prefs_get_string (w, "http_data");
-  if (result == NULL) return strdup ("");
-  return strdup (result);
+  if (result == NULL) return g_strdup ("");
+  return g_strdup (result);
 }
 
 static gboolean http_refresh_update (gpointer user_data)
@@ -62,7 +64,7 @@ static gboolean http_refresh_update (gpo
   char *http_url;
 
   w = (struct widget *) user_data;
-  http_url = strdup (ap_prefs_get_string (w, "http_url"));
+  http_url = g_strdup (ap_prefs_get_string (w, "http_url"));
 
   if( http_url && (http_url[0] != '\0') ) {
     purple_util_fetch_url(http_url, TRUE, NULL, FALSE, http_response, w);
============================================================
--- autoprofile/comp_logstats.c	a4ad85fdee55de687154715674ea4aaf9b2a7e3e
+++ autoprofile/comp_logstats.c	5f968f36780e04488e2ce9153449ce8eab4d85eb
@@ -30,6 +30,8 @@
 
 #include "comp_logstats.h"
 
+#include <string.h>
+
 struct conversation_time {
   time_t *start_time;
   char *name;


More information about the Plugins-commits mailing list