aboutsummaryrefslogtreecommitdiffstats
path: root/c_ldirs.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_ldirs.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 'c_ldirs.go')
-rw-r--r--c_ldirs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_ldirs.go b/c_ldirs.go
index 7188d5b..f8867dc 100644
--- a/c_ldirs.go
+++ b/c_ldirs.go
@@ -68,13 +68,13 @@ type DirsList struct {
// adds a directory node to the list
func (ldirs *DirsList) add_back(node *DirsNode) {
- node.ID = global_id
if ldirs.head == nil {
ldirs.head = node
ldirs.last = ldirs.head
return
}
last := ldirs.last
+ node.ID = last.ID + 1
last.next = node
ldirs.last = last.next
}