path: root/modules/lookup_hesiod.c
diff options
Diffstat (limited to 'modules/lookup_hesiod.c')
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/lookup_hesiod.c b/modules/lookup_hesiod.c
index 757cec2..46b33f2 100644
--- a/modules/lookup_hesiod.c
+++ b/modules/lookup_hesiod.c
@@ -34,7 +34,8 @@ int lookup_version = AUTOFS_LOOKUP_VERSION; /* Required by protocol */
/* This initializes a context (persistent non-global data) for queries to
this module. */
-int lookup_init(char *mapfmt, int argc, char **argv, void **context)
+int lookup_init(const char *mapfmt, int argc, const char * const *argv,
+ void **context)
struct lookup_context *ctxt = NULL;
@@ -60,9 +61,9 @@ int lookup_init(char *mapfmt, int argc, char **argv, void **context)
record in hesiod. If it's an AFS or NFS filesyste, parse it out. If
it's an ERR filesystem, it's an error message we should log. Otherwise,
assume it's something we know how to deal with already (generic). */
-int lookup_mount(char *root, char *name, int name_len, void *context)
+int lookup_mount(const char *root, const char *name, int name_len, void *context)
- char **hes_result, mapent[HESIOD_LEN + 1];
+ char **hes_result;
struct lookup_context *ctxt = (struct lookup_context *) context;
int rv;