summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2012-05-04 12:17:25 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2012-05-04 12:17:25 +0200
commit3e8e9c80dba74caf08db12948b1fb13cc352093b (patch)
tree063a7148c683d994b5946fc263efb918be737333
parent315775eae846f59eecb6ab7fe2af6809545b9b6a (diff)
Printing id of task instead of node in toStdOut
-rw-r--r--src/tasktree.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tasktree.cc b/src/tasktree.cc
index c66e665..d652eae 100644
--- a/src/tasktree.cc
+++ b/src/tasktree.cc
@@ -248,10 +248,10 @@ void TaskTree::insertChild(node_t* parent, node_t* child) {
static void printNode(node_t* node, std::string prefix) {
if(!node) return;
task_t t = node->data;
- printf("%s/%u - %s\n", prefix.c_str(), node->id, t.title.c_str());
+ printf("%s/%u - %s\n", prefix.c_str(), t.id, t.title.c_str());
char buf[4096];
- sprintf(buf, "%s/%u - %s", prefix.c_str(), node->id, t.title.c_str());
+ sprintf(buf, "%s/%u - %s", prefix.c_str(), t.id, t.title.c_str());
NodeList::iterator it;
for(it = node->children.begin(); it != node->children.end(); it++) {