agendafs

A filesystem for your calendar.

git clone git://mccd.space/agendafs
commit e746486aefcd47399704b99a3c664e72a44f0578
parent 145125d42fb557d9130cb59cdc3031579006df28
Author: Marc Coquand <marc@coquand.email>
Date:   Wed,  9 Jul 2025 18:43:01 +0200

fix warnings

Diffstat:
Mjournal_entry.c | 9+++++----
Mjournal_entry.h | 4++--
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/journal_entry.c b/journal_entry.c
@@ -124,6 +124,7 @@ get_node_by_uuid(const char *target_uuid)
 	LOG("Found it: %b", node != NULL);
 	return node;
 }
+
 bool
 is_root_node(const struct tree_node *node)
 {
@@ -233,8 +234,8 @@ free_segments(char **segments, size_t count)
 	free(segments);
 }
 
-const struct tree_node *
-get_node_by_path(const struct tree_node *root, const char *path)
+struct tree_node *
+get_node_by_path(struct tree_node *root, const char *path)
 {
 	if (strcmp(path, "/") == 0) {
 		LOG("Is ROOT %s", path);
@@ -247,7 +248,7 @@ get_node_by_path(const struct tree_node *root, const char *path)
 		return fuse_tree_root;
 	LOG("Segments are defined");
 
-	const struct tree_node *current = root;
+	struct tree_node *current = root;
 
 	for (size_t i = 0; i < count && current; ++i) {
 		const char *segment = segments[i];
@@ -801,7 +802,7 @@ do_journal_entry_rename(const char *old, const char *new)
 	char *parent_path = NULL;
 	get_parent_path(new, &parent_path);
 	LOG("PARENT PATH: %s", parent_path);
-	const struct tree_node *new_parent_node =
+	struct tree_node *new_parent_node =
 	    get_node_by_path(fuse_tree_root, parent_path);
 	free(parent_path);
 
diff --git a/journal_entry.h b/journal_entry.h
@@ -133,8 +133,8 @@ get_last_modified(struct journal_entry *entry);
 int
 build_today_hashmap();
 
-const struct tree_node *
-get_node_by_path(const struct tree_node *root, const char *path);
+struct tree_node *
+get_node_by_path(struct tree_node *root, const char *path);
 
 int
 build_notes_hashmap();