aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_lhosts.go
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-26 19:24:18 +0200
committerjoe <rbo@gmx.us>2025-08-26 19:24:18 +0200
commit93aed08e521c7d96d3c53f207fb650b449cdb12c (patch)
treed3bf429138004692a36a4a47df137093f1393fc2 /src/c_lhosts.go
parentfixed (diff)
downloadhardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.gz
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.bz2
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.xz
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.tar.zst
hardflip-93aed08e521c7d96d3c53f207fb650b449cdb12c.zip
fixed all errs and some other things
Diffstat (limited to '')
-rw-r--r--src/c_lhosts.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/c_lhosts.go b/src/c_lhosts.go
index 41964bd..e2fbd90 100644
--- a/src/c_lhosts.go
+++ b/src/c_lhosts.go
@@ -153,12 +153,12 @@ func (lhost *HostList) del(host *HostNode) {
}
}
-func (lhost *HostList) count() int {
- curr := lhost.head
- var count int
-
- for count = 0; curr != nil; count++ {
- curr = curr.next
- }
- return count
-}
+// func (lhost *HostList) count() int {
+// curr := lhost.head
+// var count int
+//
+// for count = 0; curr != nil; count++ {
+// curr = curr.next
+// }
+// return count
+// }