summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-03 11:46:30 -0500
committerpommicket <pommicket@gmail.com>2023-01-03 11:46:30 -0500
commit7428d8a59298d6a7e45cfdbfa937a770393aaa1c (patch)
tree9b381abc8774cda9dd2fad25a0ec97c0670cd8b5 /ted.c
parentdbdafec9069e69005b523bc60acbfcb59224078d (diff)
make node.c a bit clearer
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ted.c b/ted.c
index a6c10ca..89890a8 100644
--- a/ted.c
+++ b/ted.c
@@ -52,7 +52,7 @@ void ted_clearerr(Ted *ted) {
}
-static void ted_out_of_mem(Ted *ted) {
+void ted_out_of_mem(Ted *ted) {
ted_seterr(ted, "Out of memory.");
}
@@ -599,8 +599,8 @@ void ted_cancel_lsp_request(Ted *ted, LSPID lsp, LSPRequestID request) {
static void mark_node_reachable(Ted *ted, u16 node, bool reachable[TED_MAX_NODES]) {
if (reachable[node]) {
- ted_seterr(ted, "NODE CYCLE %u\nThis should never happen.", node);
- ted_log(ted, "NODE CYCLE %u\n", node);
+ ted_seterr(ted, "Node %u reachable in 2 different ways\nThis should never happen.", node);
+ ted_log(ted, "Node %u reachable in 2 different ways\n", node);
node_close(ted, node);
return;
}