aboutsummaryrefslogtreecommitdiffstats
path: root/c_lhosts.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-05 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-05 20:20:20 +0100
commit6b52e3051cd00fa39e8a7504e41a931cc874cb0e (patch)
treede1079d3ed60fcbd3fbd3de8ff1535e9455d7c4d /c_lhosts.go
parentturns out we need litems in the end (diff)
downloadhardflip-6b52e3051cd00fa39e8a7504e41a931cc874cb0e.tar.gz
hardflip-6b52e3051cd00fa39e8a7504e41a931cc874cb0e.tar.bz2
hardflip-6b52e3051cd00fa39e8a7504e41a931cc874cb0e.tar.xz
hardflip-6b52e3051cd00fa39e8a7504e41a931cc874cb0e.tar.zst
hardflip-6b52e3051cd00fa39e8a7504e41a931cc874cb0e.zip
fuck all of this hosts only
Diffstat (limited to '')
-rw-r--r--c_lhosts.go4
1 files changed, 2 insertions, 2 deletions
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
}