From 602b64263ac7390c6c3eabf008a092cb5ca37983 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Wed, 21 Oct 2020 13:17:01 +0000 Subject: [PATCH] Added README and help to program --- 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