aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-01-17 06:35:24 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-01-17 06:35:24 +0800
commit5179437ab2fa6a5d07707dd59fe63e59e60c5911 (patch)
treece7a99ea44680bba6120c707495fd00d10ee600d
parent09ea76a2c2e9d69447b4419cd71df6b0523d9eac (diff)
downloadgsoc2013-evolution-5179437ab2fa6a5d07707dd59fe63e59e60c5911.tar
gsoc2013-evolution-5179437ab2fa6a5d07707dd59fe63e59e60c5911.tar.gz
gsoc2013-evolution-5179437ab2fa6a5d07707dd59fe63e59e60c5911.tar.bz2
gsoc2013-evolution-5179437ab2fa6a5d07707dd59fe63e59e60c5911.tar.lz
gsoc2013-evolution-5179437ab2fa6a5d07707dd59fe63e59e60c5911.tar.xz
gsoc2013-evolution-5179437ab2fa6a5d07707dd59fe63e59e60c5911.tar.zst
gsoc2013-evolution-5179437ab2fa6a5d07707dd59fe63e59e60c5911.zip
fix debug output (print_remote): ditto
2001-01-16 JP Rosevear <jpr@ximian.com> * conduits/todo/todo-conduit.c (print_local): fix debug output (print_remote): ditto svn path=/trunk/; revision=7548
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/conduits/todo/todo-conduit.c20
2 files changed, 12 insertions, 13 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 030ac6270d..ec86c60745 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-16 JP Rosevear <jpr@ximian.com>
+
+ * conduits/todo/todo-conduit.c (print_local): fix debug output
+ (print_remote): ditto
+
2001-01-15 JP Rosevear <jpr@ximian.com>
* pcs/cal-backend.c (cal_backend_compute_changes): accomadate tasks
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index 7d36dc5e10..07fe9f3122 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -78,13 +78,10 @@ print_local (EToDoLocalRecord *local)
if (local->todo && local->todo->description) {
g_snprintf (buff, 4096, "[%d %ld %d %d '%s' '%s']",
- local->todo->indefinite ?
- local->todo->indefinite : "",
+ local->todo->indefinite,
mktime (& local->todo->due),
- local->todo->priority ?
- local->todo->priority : "",
- local->todo->complete ?
- local->todo->complete : "",
+ local->todo->priority,
+ local->todo->complete,
local->todo->description ?
local->todo->description : "",
local->todo->note ?
@@ -108,14 +105,11 @@ static char *print_remote (GnomePilotRecord *remote)
memset (&todo, 0, sizeof (struct ToDo));
unpack_ToDo (&todo, remote->record, remote->length);
- g_snprintf (buff, "[%d %ld %d %d '%s' '%s']",
- todo.indefinite ?
- todo.indefinite : "",
+ g_snprintf (buff, 4096, "[%d %ld %d %d '%s' '%s']",
+ todo.indefinite,
mktime (&todo.due),
- todo.priority ?
- todo.priority : "",
- todo.complete ?
- todo.complete : "",
+ todo.priority,
+ todo.complete,
todo.description ?
todo.description : "",
todo.note ?