From: Andreas Schwab <schwab@linux-m68k.org>
To: DJ Delorie via Libc-alpha <libc-alpha@sourceware.org>
Subject: Re: v5 [PATCH 3/6] nss: Implement <nss_database.h>
Date: Thu, 18 Feb 2021 10:08:33 +0100 [thread overview]
Message-ID: <87pn0xzqsu.fsf@igel.home> (raw)
In-Reply-To: <xnft4m4ok1.fsf@greed.delorie.com> (DJ Delorie via Libc-alpha's message of "Thu, 03 Dec 2020 15:33:50 -0500")
On Dez 03 2020, DJ Delorie via Libc-alpha wrote:
> +/* Database default selections. nis/compat mappings get turned into
> + "files" for !LINK_OBSOLETE_NSL configurations. */
> +enum nss_database_default
> +{
> + nss_database_default_defconfig = 0, /* "nis [NOTFOUND=return] files". */
> + nss_database_default_compat, /* "compat [NOTFOUND=return] files". */
> + nss_database_default_dns, /* "dns [!UNAVAIL=return] files". */
> + nss_database_default_files, /* "files". */
> + nss_database_default_nis, /* "nis". */
> + nss_database_default_nis_nisplus, /* "nis nisplus". */
> + nss_database_default_none, /* Empty list. */
> +
> + NSS_DATABASE_DEFAULT_COUNT /* Number of defaults. */
> +};
> +
> +/* Databases not listed default to nss_database_default_defconfig. */
> +static const char per_database_defaults[NSS_DATABASE_COUNT] =
> + {
> + [nss_database_group] = nss_database_default_compat,
> + [nss_database_gshadow] = nss_database_default_files,
> + [nss_database_hosts] = nss_database_default_dns,
> + [nss_database_initgroups] = nss_database_default_none,
> + [nss_database_networks] = nss_database_default_dns,
> + [nss_database_passwd] = nss_database_default_compat,
> + [nss_database_publickey] = nss_database_default_nis_nisplus,
> + [nss_database_shadow] = nss_database_default_compat,
> + };
Please remove this duplication.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2021-02-18 9:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-03 20:33 DJ Delorie
2020-12-04 3:28 ` Siddhesh Poyarekar
2021-02-18 9:08 ` Andreas Schwab [this message]
2021-02-18 9:46 ` Florian Weimer
2021-02-18 9:49 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pn0xzqsu.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).