summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-03-10 20:14:03 +0000
committerjmmv <jmmv@pkgsrc.org>2004-03-10 20:14:03 +0000
commit96072229015657758ac776e4a723f684eb53218f (patch)
treeb6b28ece3b3c9e439cd87dc4ec4fc37168e4ceb9
parent463209639c61b392794676df04ef2be925b869c3 (diff)
downloadpkgsrc-96072229015657758ac776e4a723f684eb53218f.tar.gz
Fix some C99-isms to let this build under 1.6.2.
-rw-r--r--time/gtodo-applet/distinfo3
-rw-r--r--time/gtodo-applet/patches/patch-aa46
2 files changed, 48 insertions, 1 deletions
diff --git a/time/gtodo-applet/distinfo b/time/gtodo-applet/distinfo
index 85f7830d562..a117e5f06a2 100644
--- a/time/gtodo-applet/distinfo
+++ b/time/gtodo-applet/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/03/10 19:22:10 jmmv Exp $
+$NetBSD: distinfo,v 1.2 2004/03/10 20:14:03 jmmv Exp $
SHA1 (gtodo-applet-0.1.tar.gz) = c214e1d1527121d14492cd8c37c63b64b182970e
Size (gtodo-applet-0.1.tar.gz) = 303635 bytes
+SHA1 (patch-aa) = be4d6466e463a5abbe51a9c40e1aae3aefc81014
diff --git a/time/gtodo-applet/patches/patch-aa b/time/gtodo-applet/patches/patch-aa
new file mode 100644
index 00000000000..882eac10507
--- /dev/null
+++ b/time/gtodo-applet/patches/patch-aa
@@ -0,0 +1,46 @@
+$NetBSD: patch-aa,v 1.1 2004/03/10 20:14:03 jmmv Exp $
+
+--- libgtodo/libgtodo.c.orig 2004-02-15 22:03:09.000000000 +0100
++++ libgtodo/libgtodo.c
+@@ -770,10 +770,10 @@ int gtodo_client_reload(GTodoClient *cl)
+ GTodoClient * gtodo_client_new_default(GError **error)
+ {
+ GError *tmp_error = NULL;
++ GTodoClient *cl = NULL;
+ /* check if the error is good or wrong. */
+ g_return_val_if_fail(error == NULL || *error == NULL,FALSE);
+
+- GTodoClient *cl = NULL;
+ cl = g_malloc(sizeof(GTodoClient));
+ cl->xml_path = g_strdup_printf("file:///%s/.gtodo/todos", g_getenv("HOME"));
+ /* check, open or create the correct xml file */
+@@ -793,6 +793,7 @@ GTodoClient * gtodo_client_new_default(G
+ GTodoClient * gtodo_client_new_from_file(char *filename, GError **error)
+ {
+ GError *tmp_error = NULL;
++ GTodoClient *cl = NULL;
+ /* check if the error is good or wrong. */
+ g_return_val_if_fail(error == NULL || *error == NULL,FALSE);
+ if(debug)g_print("Trying to create a new client %s\n", filename);
+@@ -802,7 +803,6 @@ GTodoClient * gtodo_client_new_from_file
+ g_propagate_error(error, tmp_error);
+ return NULL;
+ }
+- GTodoClient *cl = NULL;
+ cl = g_malloc(sizeof(GTodoClient));
+ cl->xml_path = g_strdup(filename);
+ /* check, open or create the correct xml file */
+@@ -833,11 +833,11 @@ GTodoList * gtodo_client_get_category_li
+ {
+ xmlNodePtr cur;
+ GTodoList *list = g_malloc(sizeof(GTodoList));
+- list->list = NULL;
++ GTodoCategory *cat;
+ int repos = 0;
++ list->list = NULL;
+ cl->number_of_categories = 0;
+ cur = cl->root->xmlChildrenNode;
+- GTodoCategory *cat;
+
+ while(cur != NULL){
+ if(xmlStrEqual(cur->name, (const xmlChar *)"category")){