From e330e86abcad7cf60e46a5038ea492a9c5ca0e01 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Mon, 23 May 2022 12:45:14 +0000
Subject: [PATCH] Check if sending was successful

---
 slist.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/slist.c b/slist.c
index 7aa0413..5e799c9 100644
--- a/slist.c
+++ b/slist.c
@@ -65,6 +65,8 @@
 	 return 0;
 }
 
+// Sort with merge sort as works well for linked lists
+// Copied from https://www.geeksforgeeks.org/merge-sort-for-linked-list/
 int sort_servers(struct dns_list **headRef)
 {
 	struct dns_list *head = *headRef;
@@ -97,7 +99,6 @@
 struct dns_list *merge(struct dns_list *a, struct dns_list *b)
 {
 	struct dns_list *out = NULL;
-	int comp;
 	if (!a)
 		return b;
 	if (!b)

--
Gitblit v1.10.0