diff options
| author | pk <pk@NetBSD.org> | 1993-10-23 00:34:22 +0000 |
|---|---|---|
| committer | pk <pk@NetBSD.org> | 1993-10-23 00:34:22 +0000 |
| commit | a0aae738e7c7d1c81920d18a3ac83e59ee25b7ca (patch) | |
| tree | 7b729e9c10bc09bc30c3bb620a68f38a65813208 /libexec | |
| parent | e228adedb3a6c36b5e997587c4cb1a19ca04fd8a (diff) | |
Changed prototype and internals of std_search_dir().
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ld.aout_so/shlib.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libexec/ld.aout_so/shlib.c b/libexec/ld.aout_so/shlib.c index 9ecbb420a3b..4be8354840c 100644 --- a/libexec/ld.aout_so/shlib.c +++ b/libexec/ld.aout_so/shlib.c @@ -1,5 +1,5 @@ /* - * $Id: shlib.c,v 1.2 1993/10/21 00:53:00 pk Exp $ + * $Id: shlib.c,v 1.3 1993/10/23 00:34:26 pk Exp $ */ #include <sys/param.h> @@ -40,15 +40,16 @@ add_search_dir(name) } void -std_search_dirs() +std_search_dirs(paths) +char *paths; { - char *cp, *ld_path = getenv("LD_LIBRARY_PATH"); + char *cp; int i, n; - if (ld_path != NULL) - /* Add search paths from LD_LIBRARY_PATH */ - while ((cp = strtok(ld_path, ":")) != NULL) { - ld_path = NULL; + if (paths != NULL) + /* Add search directories from `paths' */ + while ((cp = strtok(paths, ":")) != NULL) { + paths = NULL; add_search_dir(cp); } @@ -64,8 +65,6 @@ std_search_dirs() * Return the number of decoded entries in DEWEY. */ -#define MAXDEWEY 8 - int getdewey(dewey, cp) int dewey[]; |
