summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-10-03 21:35:37 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-10-03 21:35:37 +0200
commitd1d0d8f4d628a2ab8c851d88fc0bc1e05aa5febc (patch)
tree6011a68a1f5663993eaea665aa743e081139583b
parentfb0a19fb706b4d46d640ea3eef4cd170290a1a59 (diff)
Fix buildnsmux
-rw-r--r--lnode.c4
-rw-r--r--lnode.h4
-rw-r--r--node.c4
-rw-r--r--node.h4
4 files changed, 8 insertions, 8 deletions
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 */
)
{
diff --git a/lnode.h b/lnode.h
index 7252be27e..a419ee9ef 100644
--- a/lnode.h
+++ b/lnode.h
@@ -107,7 +107,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);
/*---------------------------------------------------------------------------*/
/*Destroys the given lnode*/
void lnode_destroy (lnode_t * node);
@@ -119,7 +119,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 */
);
/*---------------------------------------------------------------------------*/
diff --git a/node.c b/node.c
index 3c42d2847..be356ad82 100644
--- a/node.c
+++ b/node.c
@@ -729,8 +729,8 @@ error_t node_unlink_file (node_t * dir, char *name)
of the translator opened as `flags.`*/
error_t
node_set_translator
- (struct protid * diruser, node_t * np, char * trans, int flags,
- char * filename, mach_port_t * port)
+ (struct protid * diruser, node_t * np, const char * trans, int flags,
+ const char * filename, mach_port_t * port)
{
error_t err;
mach_port_t p;
diff --git a/node.h b/node.h
index 3d4aac44f..e169ad101 100644
--- a/node.h
+++ b/node.h
@@ -151,8 +151,8 @@ error_t node_unlink_file (node_t * dir, char *name);
of the translator opened as `flags.`*/
error_t
node_set_translator
- (struct protid *diruser, node_t * np, char * trans, int flags,
- char * filename, mach_port_t * port);
+ (struct protid *diruser, node_t * np, const char * trans, int flags,
+ const char * filename, mach_port_t * port);
/*---------------------------------------------------------------------------*/
/*Gets the port to the supplied node. */
error_t