diff options
author | delphij <delphij@FreeBSD.org> | 2005-01-14 12:22:57 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2005-01-14 12:22:57 +0000 |
commit | 830453071ae42ff63af88f29575408103ff3facb (patch) | |
tree | 434dbe83b1b4c5346fd59d5f3a689f92fe765729 /libexec/rtld-aout/shlib.h | |
parent | 7e1fa1922ff8dfa6ae8ea8c8ece55c047462db99 (diff) | |
download | FreeBSD-src-830453071ae42ff63af88f29575408103ff3facb.zip FreeBSD-src-830453071ae42ff63af88f29575408103ff3facb.tar.gz |
64-bit clean + WARNS=6:
- Convert the (char *) cast+cast backs magic to
memcpy(3). Without this, the resulting code
is potentially risky with higher optimization
levels.
- Avoid same name when calling local variables,
as well as global symbols. This reduces
confusion for both human and compiler.
- Add necessary casts, consts
- Use new style function defination.
- Minor style.Makefile(5) tweak
- Bump WARNS?= from 0 to 6
** for the aout code: changes are intentionally limited
to ease maintaince.
Diffstat (limited to 'libexec/rtld-aout/shlib.h')
-rw-r--r-- | libexec/rtld-aout/shlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 *)); |