This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add --print-dirs option for ldconfig
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Dan Nicholson <dbn dot lists at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 31 Mar 2012 14:07:56 -0700 (PDT)
- Subject: Re: [PATCH] Add --print-dirs option for ldconfig
- References: <1333225410-20724-1-git-send-email-dbn.lists@gmail.com>
> Add a -P|--print-dirs option to ldconfig for printing the linker
> search directories.
Seems like a reasonable feature. But call it --print-search-dirs,
consistent with the analogous gcc option.
> +2012-03-28 Dan Nicholson <dbn.lists@gmail.com>
> +
> + * elf/ldconfig.c: Add option to print linker path.
This log entry needs to be specific about the variables and functions
touched.
> + if (opt_print_dirs)
> + {
> + struct dir_entry *entry;
> +
> + for (entry = dir_entries; entry != NULL; entry = entry->next)
You can (and should) always use C99 syntax in glibc code.
So write:
if (...)
for (struct dir_entry *entry = dir_entries; entry != NULL; entry = entry->next)
Thanks,
Roland