diff options
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rtld-aout/shlib.c | 7 | ||||
-rw-r--r-- | libexec/rtld-aout/shlib.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/libexec/rtld-aout/shlib.c b/libexec/rtld-aout/shlib.c index 9fd2c66..39ec792 100644 --- a/libexec/rtld-aout/shlib.c +++ b/libexec/rtld-aout/shlib.c @@ -62,14 +62,13 @@ char **search_dirs; int n_search_dirs; -char *standard_search_dirs[] = { +const char *standard_search_dirs[] = { STANDARD_SEARCH_DIRS }; void -add_search_dir(name) - char *name; +add_search_dir(const char *name) { int n; @@ -269,7 +268,7 @@ search_lib_dir(dir, name, majorp, minorp, do_dot_a) int *minorp; int do_dot_a; { - int namelen; + size_t namelen; DIR *dd; struct dirent *dp; int best_dewey[MAXDEWEY]; diff --git a/libexec/rtld-aout/shlib.h b/libexec/rtld-aout/shlib.h index d05690f..4b6d753 100644 --- a/libexec/rtld-aout/shlib.h +++ b/libexec/rtld-aout/shlib.h @@ -33,7 +33,7 @@ extern char **search_dirs; extern int n_search_dirs; -void add_search_dir __P((char *)); +void add_search_dir __P((const char *)); void add_search_path __P((char *)); void std_search_path __P((void)); int getdewey __P((int[], char *)); |