aboutsummaryrefslogtreecommitdiffstats
path: root/c_lhosts.go
diff options
context:
space:
mode:
Diffstat (limited to 'c_lhosts.go')
-rw-r--r--c_lhosts.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/c_lhosts.go b/c_lhosts.go
index db932f9..d197607 100644
--- a/c_lhosts.go
+++ b/c_lhosts.go
@@ -103,6 +103,7 @@ func (lhost *HostList) del(id uint64) {
}
}
+// return the list node with the according id
func (lhost *HostList) sel(id uint64) *HostNode {
curr := lhost.head
for curr.next != nil && curr.ID != id {