Author: guillem
Date: 2006-06-21 15:02:34 +0000 (Wed, 21 Jun 2006)
New Revision: 422

Modified:
   trunk/ChangeLog
   trunk/utils/start-stop-daemon.c
Log:
Tighten the scope for two global variables by moving them to parse_options.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2006-06-21 14:58:52 UTC (rev 421)
+++ trunk/ChangeLog     2006-06-21 15:02:34 UTC (rev 422)
@@ -1,5 +1,11 @@
 2006-06-21  Guillem Jover  <[EMAIL PROTECTED]>
 
+       * utils/start-stop-daemon.c (signal_str, schedule_str): Move
+       variables inside ...
+       (parse_options): ... here.
+
+2006-06-21  Guillem Jover  <[EMAIL PROTECTED]>
+
        * utils/start-stop-daemon.c (umask_value): New variable.
        (do_help): Print information about the new '--umask' option.
        (parse_umask): New function.

Modified: trunk/utils/start-stop-daemon.c
===================================================================
--- trunk/utils/start-stop-daemon.c     2006-06-21 14:58:52 UTC (rev 421)
+++ trunk/utils/start-stop-daemon.c     2006-06-21 15:02:34 UTC (rev 422)
@@ -123,7 +123,6 @@
 static int background = 0;
 static int mpidfile = 0;
 static int signal_nr = 15;
-static const char *signal_str = NULL;
 static int user_id = -1;
 static int runas_uid = -1;
 static int runas_gid = -1;
@@ -137,7 +136,6 @@
 static char *startas = NULL;
 static const char *pidfile = NULL;
 static char what_stop[1024];
-static const char *schedule_str = NULL;
 static const char *progname = "";
 static int nicelevel = 0;
 static int umask_value = -1;
@@ -517,6 +515,8 @@
                { NULL,         0, NULL, 0}
        };
        const char *umask_str = NULL;
+       const char *signal_str = NULL;
+       const char *schedule_str = NULL;
        int c;
 
        for (;;) {


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to