pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time/gtodo-applet Fix some C99-isms to let this build ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/082498bde4c4
branches: trunk
changeset: 470616:082498bde4c4
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Wed Mar 10 20:14:03 2004 +0000
description:
Fix some C99-isms to let this build under 1.6.2.
diffstat:
time/gtodo-applet/distinfo | 3 +-
time/gtodo-applet/patches/patch-aa | 46 ++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+), 1 deletions(-)
diffs (60 lines):
diff -r 6ad1ba079df9 -r 082498bde4c4 time/gtodo-applet/distinfo
--- a/time/gtodo-applet/distinfo Wed Mar 10 19:42:27 2004 +0000
+++ b/time/gtodo-applet/distinfo Wed Mar 10 20:14:03 2004 +0000
@@ -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 -r 6ad1ba079df9 -r 082498bde4c4 time/gtodo-applet/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/gtodo-applet/patches/patch-aa Wed Mar 10 20:14:03 2004 +0000
@@ -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")){
Home |
Main Index |
Thread Index |
Old Index