aboutsummaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
Diffstat (limited to 'sutils')
-rw-r--r--sutils/bless.c1
-rw-r--r--sutils/clookup.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/sutils/bless.c b/sutils/bless.c
index 4b272adc..cefdf7a8 100644
--- a/sutils/bless.c
+++ b/sutils/bless.c
@@ -20,6 +20,7 @@
#include <argp.h>
#include <assert-backtrace.h>
#include <error.h>
+#include <stdlib.h>
#include <hurd.h>
#include <mach.h>
#include <version.h>
diff --git a/sutils/clookup.c b/sutils/clookup.c
index 0232b634..97a04b51 100644
--- a/sutils/clookup.c
+++ b/sutils/clookup.c
@@ -51,12 +51,12 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode)
sure the result node doesn't have a passive translator with no active
translator started (but we make an exception for symlinks) -- if it
does, we just return ENXIO. */
- error_t lookup (file_t dir, char *name, int flags, mode_t mode,
+ error_t lookup (file_t dir, const char *name, int flags, mode_t mode,
retry_type *retry, string_t retry_name,
mach_port_t *node)
{
error_t err;
- char *head, *tail;
+ const char *head, *tail;
char *slash = index (name, '/');
if (slash)