diff --git a/usr/src/cmd/fs.d/autofs/autod_nfs.c b/usr/src/cmd/fs.d/autofs/autod_nfs.c index 0e7ce475ba12..77ffe9899ef1 100644 --- a/usr/src/cmd/fs.d/autofs/autod_nfs.c +++ b/usr/src/cmd/fs.d/autofs/autod_nfs.c @@ -3982,7 +3982,6 @@ trace_host_cache() static void read_default_nfs(void) { - static time_t lastread = 0; struct stat buf; char defval[4]; int errno, bufsz; @@ -4010,8 +4009,6 @@ read_default_nfs(void) } } - lastread = buf.st_mtime; - /* * Quick sanity check on the values picked up from the * defaults file. Make sure that a mistake wasn't diff --git a/usr/src/cmd/fs.d/autofs/ns_files.c b/usr/src/cmd/fs.d/autofs/ns_files.c index 21a97660076b..95e59df85bc9 100644 --- a/usr/src/cmd/fs.d/autofs/ns_files.c +++ b/usr/src/cmd/fs.d/autofs/ns_files.c @@ -25,8 +25,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include #include #include @@ -50,8 +48,7 @@ static int read_execout(char *key, char **lp, char *fname, char *line, int linesz); -static int call_read_execout(char *key, char **lp, char *fname, char *line, - int linesz); +static int call_read_execout(char *key, char *fname, char *line, int linesz); static FILE *file_open(char *, char *, char **, char ***); /* @@ -116,7 +113,7 @@ getmapent_files(key, mapname, ml, stack, stkptr, iswildcard, isrestricted) fname, key); } - rc = call_read_execout(key, &lp, fname, ml->linebuf, LINESZ); + rc = call_read_execout(key, fname, ml->linebuf, LINESZ); if (rc != 0) { nserr = __NSW_UNAVAIL; @@ -648,7 +645,7 @@ read_execout(char *key, char **lp, char *fname, char *line, int linesz) void automountd_do_exec_map(void *cookie, char *argp, size_t arg_size, - door_desc_t *dfd, uint_t n_desc) + door_desc_t *dfd, uint_t n_desc) { command_t *command; char line[LINESZ]; @@ -680,9 +677,8 @@ automountd_do_exec_map(void *cookie, char *argp, size_t arg_size, door_return(NULL, 0, NULL, 0); } -int -call_read_execout(char *key, char **lp, char *fname, char *line, - int linesz) +static int +call_read_execout(char *key, char *fname, char *line, int linesz) { command_t command; door_arg_t darg; @@ -703,6 +699,5 @@ call_read_execout(char *key, char **lp, char *fname, char *line, ret = door_call(did_exec_map, &darg); - lp = &line; return (ret); }