diff options
author | Joe <rbo@gmx.us> | 2024-01-03 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-03 20:20:20 +0100 |
commit | 7e595f4ba400b32ece930de0847d994f6f2fbe24 (patch) | |
tree | 39ffae8e4930f687cc6ed48c9b5860624df985f7 /c_lhosts.go | |
parent | wip (diff) | |
download | hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.gz hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.bz2 hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.xz hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.tar.zst hardflip-7e595f4ba400b32ece930de0847d994f6f2fbe24.zip |
unique id maybe?
Diffstat (limited to '')
-rw-r--r-- | c_lhosts.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c_lhosts.go b/c_lhosts.go index df26d25..6e7ea77 100644 --- a/c_lhosts.go +++ b/c_lhosts.go @@ -74,7 +74,7 @@ type HostNode struct { Dynamic bool `yaml:"dynamic"` Note string `yaml:"note"` Filename string - Dir *DirsNode + Parent *DirsNode next *HostNode } @@ -87,6 +87,7 @@ type HostList struct { func (lhost *HostList) add_back(node *HostNode) { new_node := node + new_node.ID = global_id if lhost.head == nil { lhost.head = new_node lhost.last = lhost.head @@ -96,7 +97,6 @@ func (lhost *HostList) add_back(node *HostNode) { // for curr.next != nil { // curr = curr.next // } - new_node.ID = curr.ID + 1 curr.next = new_node lhost.last = curr.next } |