rtld trace_loaded_objects(): use bool for the list_containers variable

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D34716
This commit is contained in:
Konstantin Belousov 2022-03-31 01:17:59 +03:00
parent b0bc8cc705
commit db0372808a

View File

@ -4994,10 +4994,11 @@ trace_print_obj(Obj_Entry *obj, const char *name, const char *path,
static void
trace_loaded_objects(Obj_Entry *obj)
{
const char *fmt1, *fmt2, *main_local, *list_containers;
const char *fmt1, *fmt2, *main_local;
bool list_containers;
trace_calc_fmts(&main_local, &fmt1, &fmt2);
list_containers = ld_get_env_var(LD_TRACE_LOADED_OBJECTS_ALL);
list_containers = ld_get_env_var(LD_TRACE_LOADED_OBJECTS_ALL) != NULL;
for (; obj != NULL; obj = TAILQ_NEXT(obj, next)) {
Needed_Entry *needed;