This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.15-774-g91d8d69


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  91d8d69ec6bc407af06125c4c98f70e3a43f3b38 (commit)
      from  bb90b80baa683336584716122f529b039c48d3af (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=91d8d69ec6bc407af06125c4c98f70e3a43f3b38

commit 91d8d69ec6bc407af06125c4c98f70e3a43f3b38
Author: Andreas Jaeger <aj@suse.de>
Date:   Wed May 9 17:41:25 2012 +0200

    Cleanup last patch for nscd/nscd.c
    
    	* nscd/nscd.c (run_mode): Use enum.
    	(main): Cleanup coding style issue.

diff --git a/ChangeLog b/ChangeLog
index 7cee81a..6d7243b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 	    Andreas Jaeger  <aj@suse.de>
 
diff --git a/nscd/nscd.c b/nscd/nscd.c
index 38a1421..e22d8e8 100644
--- a/nscd/nscd.c
+++ b/nscd/nscd.c
@@ -72,7 +72,7 @@ int do_shutdown;
 int disabled_passwd;
 int disabled_group;
 
-enum
+static enum
 {
   /* Running in foreground but otherwise behave like a daemon,
      i.e., detach from terminal and use syslog.  This allows
@@ -82,8 +82,7 @@ enum
   RUN_DAEMONIZE,
   /* Run in foreground in debug mode.  */
   RUN_DEBUG
-};
-static int run_mode = RUN_DAEMONIZE;
+} run_mode = RUN_DAEMONIZE;
 
 static const char *conffile = _PATH_NSCDCONF;
 
@@ -187,7 +186,7 @@ main (int argc, char **argv)
   /* Determine page size.  */
   pagesize_m1 = getpagesize () - 1;
 
-  if ((run_mode == RUN_DAEMONIZE) || (run_mode == RUN_FOREGROUND))
+  if (run_mode == RUN_DAEMONIZE || run_mode == RUN_FOREGROUND)
     {
       int i;
       pid_t pid;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog   |    6 ++++++
 nscd/nscd.c |    7 +++----
 2 files changed, 9 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]