pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/gtodo Fix some C99-isms to let this build under 1...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8a1b649c97e3
branches:  trunk
changeset: 470614:8a1b649c97e3
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Wed Mar 10 19:31:06 2004 +0000

description:
Fix some C99-isms to let this build under 1.6.2.

diffstat:

 time/gtodo/distinfo         |   3 +-
 time/gtodo/patches/patch-ab |  46 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 1 deletions(-)

diffs (61 lines):

diff -r 91fe1983eeee -r 8a1b649c97e3 time/gtodo/distinfo
--- a/time/gtodo/distinfo       Wed Mar 10 19:29:31 2004 +0000
+++ b/time/gtodo/distinfo       Wed Mar 10 19:31:06 2004 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/03/10 19:20:45 jmmv Exp $
+$NetBSD: distinfo,v 1.2 2004/03/10 19:31:06 jmmv Exp $
 
 SHA1 (gtodo-0.14.tar.gz) = c6eb5089a324abdf41383a60a9f8f0d3f4ebb8ff
 Size (gtodo-0.14.tar.gz) = 198798 bytes
 SHA1 (patch-aa) = 3729f70027316bbab34c2c3a81adc7f83c18e189
+SHA1 (patch-ab) = be4d6466e463a5abbe51a9c40e1aae3aefc81014
diff -r 91fe1983eeee -r 8a1b649c97e3 time/gtodo/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/gtodo/patches/patch-ab       Wed Mar 10 19:31:06 2004 +0000
@@ -0,0 +1,46 @@
+$NetBSD: patch-ab,v 1.1 2004/03/10 19:31:06 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")){



Home | Main Index | Thread Index | Old Index