mirror of git://sourceware.org/git/glibc.git
Cleanup last patch for nscd/nscd.c
* nscd/nscd.c (run_mode): Use enum. (main): Cleanup coding style issue.
This commit is contained in:
parent
bb90b80baa
commit
91d8d69ec6
|
@ -1,3 +1,9 @@
|
||||||
|
2012-05-09 Andreas Jaeger <aj@suse.de>
|
||||||
|
Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* nscd/nscd.c (run_mode): Use enum.
|
||||||
|
(main): Cleanup coding style issue.
|
||||||
|
|
||||||
2012-05-09 Alexandre Oliva <aoliva@redhat.com>
|
2012-05-09 Alexandre Oliva <aoliva@redhat.com>
|
||||||
Andreas Jaeger <aj@suse.de>
|
Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ int do_shutdown;
|
||||||
int disabled_passwd;
|
int disabled_passwd;
|
||||||
int disabled_group;
|
int disabled_group;
|
||||||
|
|
||||||
enum
|
static enum
|
||||||
{
|
{
|
||||||
/* Running in foreground but otherwise behave like a daemon,
|
/* Running in foreground but otherwise behave like a daemon,
|
||||||
i.e., detach from terminal and use syslog. This allows
|
i.e., detach from terminal and use syslog. This allows
|
||||||
|
@ -82,8 +82,7 @@ enum
|
||||||
RUN_DAEMONIZE,
|
RUN_DAEMONIZE,
|
||||||
/* Run in foreground in debug mode. */
|
/* Run in foreground in debug mode. */
|
||||||
RUN_DEBUG
|
RUN_DEBUG
|
||||||
};
|
} run_mode = RUN_DAEMONIZE;
|
||||||
static int run_mode = RUN_DAEMONIZE;
|
|
||||||
|
|
||||||
static const char *conffile = _PATH_NSCDCONF;
|
static const char *conffile = _PATH_NSCDCONF;
|
||||||
|
|
||||||
|
@ -187,7 +186,7 @@ main (int argc, char **argv)
|
||||||
/* Determine page size. */
|
/* Determine page size. */
|
||||||
pagesize_m1 = getpagesize () - 1;
|
pagesize_m1 = getpagesize () - 1;
|
||||||
|
|
||||||
if ((run_mode == RUN_DAEMONIZE) || (run_mode == RUN_FOREGROUND))
|
if (run_mode == RUN_DAEMONIZE || run_mode == RUN_FOREGROUND)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
Loading…
Reference in New Issue