org.guifications.plugins.autoprofile_merge: 0abfc964436537c17e3ead0154707d4b4a2416c7

rekkanoryo at guifications.org rekkanoryo at guifications.org
Sun Mar 23 21:30:08 CDT 2008


-----------------------------------------------------------------
Revision: 0abfc964436537c17e3ead0154707d4b4a2416c7
Ancestor: 258fb55196307bfeda2019760cf6285e179a2a07
Author: rekkanoryo at guifications.org
Date: 2008-03-24T01:26:02
Branch: org.guifications.plugins.autoprofile_merge

Modified files:
        autoprofile/comp_rss_parser.c autoprofile/comp_timestamp.c
        autoprofile/comp_uptime.c

ChangeLog: 

More header inclusions

-----------------------------------------------------------------
This revision's diffstat output:
 comp_rss_parser.c |    6 +++---
 comp_timestamp.c  |    2 ++
 comp_uptime.c     |    6 +++++-
 3 files changed, 10 insertions(+), 4 deletions(-)
-------------- next part --------------
============================================================
--- autoprofile/comp_rss_parser.c	a12893a6303e33c448170a6ece3e9d3985af555f
+++ autoprofile/comp_rss_parser.c	d0927e629d872ee44b8b624ca30c8312fa74258a
@@ -209,7 +209,7 @@ static void text_handler (GMarkupParseCo
     if (e->url) {
       free (e->url);
     }
-    e->url = strdup (text);
+    e->url = g_strdup (text);
   }
     
   else if (item_description) {
@@ -227,14 +227,14 @@ static void text_handler (GMarkupParseCo
     if (e->comments) {
       free (e->comments);
     }
-    e->comments = strdup (text);
+    e->comments = g_strdup (text);
   }
 
   else if (item_title) {
     if (e->title) {
       free (e->title);
     }
-    e->title = strdup (text);
+    e->title = g_strdup (text);
   }
 
   else if (item_pubdate) {
============================================================
--- autoprofile/comp_timestamp.c	6cb5ce89e64cc3f5daa7516858f1673330a5f8bc
+++ autoprofile/comp_timestamp.c	9dfed996dadbbee2fb43b0191f3cef407f5e1277
@@ -21,6 +21,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA *
  *--------------------------------------------------------------------------*/
 
+#include "../common/pp_internal.h"
+
 #include "component.h"
 #include "utility.h"
 
============================================================
--- autoprofile/comp_uptime.c	62db1ebc87d3d1d7029b5698846f2509ad21ba52
+++ autoprofile/comp_uptime.c	af1bf555679004fc1fa4ec16e656c0a9b981d498
@@ -21,9 +21,13 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA *
  *--------------------------------------------------------------------------*/
 
+#include "../common/pp_internal.h"
+
 #include "component.h"
 #include "utility.h"
 
+#include <string.h>
+
 /*---------- UPTIME: Display the computer uptime --*/
 char *uptime_generate (struct widget *w) {
   gboolean exec;
@@ -75,7 +79,7 @@ char *uptime_generate (struct widget *w)
     return working;
   } else {
     ap_debug ("uptime", "command failed to execute");
-    return strdup(_("[ERROR: failed to execute uptime command]"));
+    return g_strdup(_("[ERROR: failed to execute uptime command]"));
     return NULL;
   }
 }


More information about the Plugins-commits mailing list