aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-27 21:48:23 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-27 21:48:23 -0400
commitd28aac66dca51fdd6d1683e90d9285c97ffa1e70 (patch)
tree1109847ffe8472476245291c470ed2dec82ffba7
parent2fc327cf38c3e207da78a01153ff52555a38a993 (diff)
reduced printing in nodelink
-rw-r--r--nodelink.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nodelink.c b/nodelink.c
index 6e3019b..0aea005 100644
--- a/nodelink.c
+++ b/nodelink.c
@@ -19,9 +19,9 @@ link* newlink(node* to) {
static void printlink(char* name, link* conn) {
if (conn->desc[0])
- printf("Link to %s: %s\n", name, conn->desc);
+ printf("%s: %s\n", name, conn->desc);
else
- printf("Link to %s\n", name);
+ printf("%s\n", name);
}
static void printeach(strbstnode* loc, char reprint) {
@@ -38,6 +38,5 @@ static void printeach(strbstnode* loc, char reprint) {
}
void printnode(node* root) {
- printf("Root node\n");
printeach(root->links->head, 1);
}