From 6b52e3051cd00fa39e8a7504e41a931cc874cb0e Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 5 Jan 2024 20:20:20 +0100 Subject: fuck all of this hosts only --- c_lhosts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c_lhosts.go') diff --git a/c_lhosts.go b/c_lhosts.go index bddc1c0..e2d7d5e 100644 --- a/c_lhosts.go +++ b/c_lhosts.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_lhosts.go - * Thu 04 Jan 2024 11:50:55 AM CET + * Fri Jan 05 12:29:56 2024 * Joe * * the hosts linked list @@ -84,13 +84,13 @@ type HostList struct { // adds a host node to the list func (lhost *HostList) add_back(node *HostNode) { - node.ID = global_id if lhost.head == nil { lhost.head = node lhost.last = lhost.head return } last := lhost.last + node.ID = last.ID + 1 last.next = node lhost.last = last.next } -- cgit v1.2.3