This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add --foreground option for nscd
Andreas Jaeger <aj@suse.com> writes:
> * nscd/nscd.c (run_modes): Make named enum, reorder so that
> default is first entry.
> (run_mode): Set type.
> (main): Remove informal message about syslog.
> (options): Fix typo.
>
> diff --git a/nscd/nscd.c b/nscd/nscd.c
> index e22d8e8..79fb32f 100644
> --- a/nscd/nscd.c
> +++ b/nscd/nscd.c
> @@ -72,17 +72,19 @@ int do_shutdown;
> int disabled_passwd;
> int disabled_group;
>
> -static enum
> +typedef enum
No need to make it a typedef, just a tagged enum is enough.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."