diff options
author | JP Rosevear <jpr@ximian.com> | 2001-01-17 06:35:24 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-01-17 06:35:24 +0800 |
commit | 5179437ab2fa6a5d07707dd59fe63e59e60c5911 (patch) | |
tree | ce7a99ea44680bba6120c707495fd00d10ee600d /calendar/conduits | |
parent | 09ea76a2c2e9d69447b4419cd71df6b0523d9eac (diff) | |
download | gsoc2013-evolution-5179437ab2fa6a5d07707dd59fe63e59e60c5911.tar.gz 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
Diffstat (limited to 'calendar/conduits')
-rw-r--r-- | calendar/conduits/todo/todo-conduit.c | 20 |
1 files changed, 7 insertions, 13 deletions
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 ? |