diff options
| author | Ron <ron@debian.org> | 2009-06-27 04:44:19 +0930 |
|---|---|---|
| committer | Austin Foxley <austinf@cetoncorp.com> | 2009-07-09 01:35:04 -0700 |
| commit | 2291c660e546e1fa766ef0c0696bd7b074c3b9f3 (patch) | |
| tree | 7eec53d25d59132b5b255f477a528bdd6f37bb33 /utils/ldconfig.c | |
| parent | c1040feea984d4bf8760da64b552bd22ee7a00c4 (diff) | |
| download | uClibc-alpine-2291c660e546e1fa766ef0c0696bd7b074c3b9f3.tar.bz2 uClibc-alpine-2291c660e546e1fa766ef0c0696bd7b074c3b9f3.tar.xz | |
Make more utility functions static
This keeps gcc-4.4 from nagging that they have no prototypes.
Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'utils/ldconfig.c')
| -rw-r--r-- | utils/ldconfig.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/ldconfig.c b/utils/ldconfig.c index 2d4803ba4..d2f47f20c 100644 --- a/utils/ldconfig.c +++ b/utils/ldconfig.c @@ -200,8 +200,8 @@ static char *xstrdup(const char *str) #define readsonameXX readsoname64 #define __ELF_NATIVE_CLASS 64 #include "readsoname2.c" -char *readsoname(char *name, FILE *infile, int expected_type, - int *type, int elfclass) +static char *readsoname(char *name, FILE *infile, int expected_type, + int *type, int elfclass) { char *res; @@ -233,8 +233,8 @@ char *readsoname(char *name, FILE *infile, int expected_type, * If the expected, actual/deduced types missmatch we display a warning * and use the actual/deduced type. */ -char *is_shlib(const char *dir, const char *name, int *type, - int *islink, int expected_type) +static char *is_shlib(const char *dir, const char *name, int *type, + int *islink, int expected_type) { char *good = NULL; char *cp, *cp2; @@ -350,7 +350,7 @@ char *is_shlib(const char *dir, const char *name, int *type, } /* update the symlink to new library */ -void link_shlib(const char *dir, const char *file, const char *so) +static void link_shlib(const char *dir, const char *file, const char *so) { int change = 1; char libname[BUFFER_SIZE]; @@ -407,7 +407,7 @@ void link_shlib(const char *dir, const char *file, const char *so) } /* figure out which library is greater */ -int libcmp(char *p1, char *p2) +static int libcmp(char *p1, char *p2) { while (*p1) { if (isdigit(*p1) && isdigit(*p2)) { @@ -439,7 +439,7 @@ struct lib { }; /* update all shared library links in a directory */ -void scan_dir(const char *rawname) +static void scan_dir(const char *rawname) { DIR *dir; const char *name; @@ -581,7 +581,7 @@ void cache_write(void) } #else /* return the list of system-specific directories */ -char *get_extpath(void) +static char *get_extpath(void) { char *res = NULL, *cp; FILE *file; |
