aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nodelink.c2
-rw-r--r--read.c2
-rw-r--r--template3
3 files changed, 5 insertions, 2 deletions
diff --git a/nodelink.c b/nodelink.c
index 2838593..8c98690 100644
--- a/nodelink.c
+++ b/nodelink.c
@@ -31,7 +31,7 @@ static void printeach(strbstnode* loc, char reprint) {
if (!reprint) printf(" "); // indent on subnode
printlink(loc->ind, loc->data); // prints it
// and subnodes if iterating over root tree (except root link)
- if (reprint && strcmp(loc->ind,"root")) {
+ if (reprint && strcmp(loc->ind,"")) {
// prints the link's target's link tree
printeach( ( (link*)loc->data)->to->links->head, 0);
}
diff --git a/read.c b/read.c
index 37fefb0..b9e26aa 100644
--- a/read.c
+++ b/read.c
@@ -94,7 +94,7 @@ node* readfile(char* name) {
FILE* read = fopen(name, "r");
node *root, *cur;
cur = root = newnode();
- link* curl = addbstlink(root->links, "root", root);
+ link* curl = addbstlink(root->links, "", root);
llnode start;
start.next = NULL; // empty desc isn't undefined
diff --git a/template b/template
index bb2aa73..912188a 100644
--- a/template
+++ b/template
@@ -19,3 +19,6 @@ Civilians are being killed by chemicals outlawed by Geneva Convention.
- Chemical Warfare
The United Nations has attempted, in ceasefires to get gov't to agree to
stop chemical warfare in exchange for enemies'
+
+:
+should append