From d1d0d8f4d628a2ab8c851d88fc0bc1e05aa5febc Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 3 Oct 2023 21:35:37 +0200 Subject: Fix build --- lnode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lnode.c') diff --git a/lnode.c b/lnode.c index c31cbd64c..0ead46518 100644 --- a/lnode.c +++ b/lnode.c @@ -69,7 +69,7 @@ void lnode_ref_remove (lnode_t * node) /*---------------------------------------------------------------------------*/ /*Creates a new lnode with `name`; the new node is locked and contains a single reference*/ -error_t lnode_create (char *name, lnode_t ** node) +error_t lnode_create (const char *name, lnode_t ** node) { /*Allocate the memory for the node */ lnode_t *node_new = malloc (sizeof (lnode_t)); @@ -225,7 +225,7 @@ error_t lnode_path_construct (lnode_t * node, char **path) /*---------------------------------------------------------------------------*/ /*Gets a light node by its name, locks it and increments its refcount*/ error_t lnode_get (lnode_t * dir, /*search here */ - char *name, /*search for this name */ + const char *name, /*search for this name */ lnode_t ** node /*put the result here */ ) { -- cgit v1.2.3