diff options
author | kan <kan@FreeBSD.org> | 2003-02-13 17:05:10 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-02-13 17:05:10 +0000 |
commit | debc727d4ef44707cae4173ed0d3a03f7057b546 (patch) | |
tree | 5e97f2d436d9752f82e3e0c8713fe89198d06940 /libexec/rtld-elf/rtld.c | |
parent | 052848f21bd068063df527eb84a5b08a5ead8540 (diff) | |
download | FreeBSD-src-debc727d4ef44707cae4173ed0d3a03f7057b546.zip FreeBSD-src-debc727d4ef44707cae4173ed0d3a03f7057b546.tar.gz |
Remove /usr/lib/elf from a default search path.
Move xprintf to malloc.c, it is only used there. Make static.
Submitted by: phantom
Diffstat (limited to 'libexec/rtld-elf/rtld.c')
-rw-r--r-- | libexec/rtld-elf/rtld.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 4408d63..1febf0c 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -118,7 +118,6 @@ static void unload_object(Obj_Entry *); static void unref_dag(Obj_Entry *); void r_debug_state(struct r_debug*, struct link_map*); -void xprintf(const char *, ...) __printflike(1, 2); /* * Data declarations. @@ -2172,19 +2171,3 @@ unref_dag(Obj_Entry *root) objlist_remove(&elm->obj->dldags, root); } } - -/* - * Non-mallocing printf, for use by malloc itself. - * XXX - This doesn't belong in this module. - */ -void -xprintf(const char *fmt, ...) -{ - char buf[256]; - va_list ap; - - va_start(ap, fmt); - vsprintf(buf, fmt, ap); - (void)write(STDOUT_FILENO, buf, strlen(buf)); - va_end(ap); -} |