feat: rename(2), mount(2) and unmount(2)
[lunaix-os.git] / lunaix-os / includes / lunaix / ds / llist.h
index 6129ca05a83bd015b20058c8c9ac1bd68276e69c..22e0f931b3e22fb9cad6c29963dc6f8b18b958ca 100644 (file)
@@ -93,8 +93,10 @@ struct hlist_node
 };
 
 static inline void
-hlist_del(struct hlist_node* node)
+hlist_delete(struct hlist_node* node)
 {
+    if (!node->pprev)
+        return;
     *node->pprev = node->next;
     node->next = 0;
     node->pprev = 0;