[Initng-svn] r3179 - in initng: tags/0.5.3/plugins/find tags/0.5.3/plugins/history tags/0.5.3/plugins/limit tags/0.5.3/plugins/simple_launcher tags/0.5.3/plugins/syslog tags/0.5.3/src tags/0.5.4.1/plugins/daemon tags/0.5.4.1/plugins/find tags/0.5.4/plugins/daemon tags/0.5.4/plugins/find trunk/plugins/find trunk/plugins/service

svn at initng.thinktux.net svn at initng.thinktux.net
Fri Mar 3 12:37:42 CET 2006


Author: deac
Date: Fri Mar  3 12:37:41 2006
New Revision: 3179

Modified:
   initng/tags/0.5.3/plugins/find/initng_find.c
   initng/tags/0.5.3/plugins/history/initng_history.c
   initng/tags/0.5.3/plugins/limit/initng_limit.c
   initng/tags/0.5.3/plugins/simple_launcher/initng_simple_launcher.c
   initng/tags/0.5.3/plugins/syslog/initng_syslog.c
   initng/tags/0.5.3/src/initng_main.c
   initng/tags/0.5.3/src/initng_plugin_hook.c
   initng/tags/0.5.3/src/initng_static_data_id.c
   initng/tags/0.5.3/src/initng_static_service_types.c
   initng/tags/0.5.3/src/initng_static_states.c
   initng/tags/0.5.3/src/initng_string_tools.c
   initng/tags/0.5.4.1/plugins/daemon/initng_daemon.c
   initng/tags/0.5.4.1/plugins/find/initng_find.c
   initng/tags/0.5.4/plugins/daemon/initng_daemon.c
   initng/tags/0.5.4/plugins/find/initng_find.c
   initng/trunk/plugins/find/initng_find.c
   initng/trunk/plugins/service/initng_service.c
Log:
indent

Modified: initng/tags/0.5.3/plugins/find/initng_find.c
==============================================================================
--- initng/tags/0.5.3/plugins/find/initng_find.c	(original)
+++ initng/tags/0.5.3/plugins/find/initng_find.c	Fri Mar  3 12:37:41 2006
@@ -29,7 +29,7 @@
 #include <assert.h>
 #include <sys/types.h>
 #include <dirent.h>
-                             /*#include <dirent.h> *//* opendir() closedir() */
+                                                     /*#include <dirent.h> *//* opendir() closedir() */
 
 #include "../../src/initng_global.h"
 #include "../../src/initng_string_tools.h"

Modified: initng/tags/0.5.3/plugins/history/initng_history.c
==============================================================================
--- initng/tags/0.5.3/plugins/history/initng_history.c	(original)
+++ initng/tags/0.5.3/plugins/history/initng_history.c	Fri Mar  3 12:37:41 2006
@@ -334,7 +334,8 @@
     initng_command_add(&HISTORYS);
     initng_command_add(&LOG);
     initng_plugin_hook_add(&g.ASTATUS_CHANGE, 1000, &history_add_values);
-    initng_plugin_hook_add(&g.COMPENSATE_TIME, 50, &history_db_compensate_time);
+    initng_plugin_hook_add(&g.COMPENSATE_TIME, 50,
+                           &history_db_compensate_time);
     initng_plugin_hook_add(&g.PIPEWATCHERS, 50, &fetch_output);
 
     return (TRUE);

Modified: initng/tags/0.5.3/plugins/limit/initng_limit.c
==============================================================================
--- initng/tags/0.5.3/plugins/limit/initng_limit.c	(original)
+++ initng/tags/0.5.3/plugins/limit/initng_limit.c	Fri Mar  3 12:37:41 2006
@@ -309,4 +309,3 @@
     initng_service_data_types_del(&RLIMIT_STACK_HARD);
 
 }
-

Modified: initng/tags/0.5.3/plugins/simple_launcher/initng_simple_launcher.c
==============================================================================
--- initng/tags/0.5.3/plugins/simple_launcher/initng_simple_launcher.c	(original)
+++ initng/tags/0.5.3/plugins/simple_launcher/initng_simple_launcher.c	Fri Mar  3 12:37:41 2006
@@ -51,9 +51,9 @@
 /*#undef D_
    #define D_ W_ */
 
-s_entry EXEC =
-    { "exec", VARIABLE_STRING, NULL,
-"Contains the path and argumetns to a file to exec." };
+s_entry EXEC = { "exec", VARIABLE_STRING, NULL,
+    "Contains the path and argumetns to a file to exec."
+};
 
 s_entry EXECS = { "exec_path", VARIABLE_STRINGS, NULL,
     "The path for one ore more executables."

Modified: initng/tags/0.5.3/plugins/syslog/initng_syslog.c
==============================================================================
--- initng/tags/0.5.3/plugins/syslog/initng_syslog.c	(original)
+++ initng/tags/0.5.3/plugins/syslog/initng_syslog.c	Fri Mar  3 12:37:41 2006
@@ -323,7 +323,8 @@
     openlog("InitNG", 0, LOG_LOCAL1);
 
     initng_plugin_hook_add(&g.ERR_MSG, 50, &syslog_print_error);
-    initng_plugin_hook_add(&g.ASTATUS_CHANGE, 100, &syslog_print_status_change);
+    initng_plugin_hook_add(&g.ASTATUS_CHANGE, 100,
+                           &syslog_print_status_change);
     initng_plugin_hook_add(&g.SWATCHERS, 100, &syslog_print_system_state);
     initng_plugin_hook_add(&g.PIPEWATCHERS, 100, &syslog_fetch_output);
 

Modified: initng/tags/0.5.3/src/initng_main.c
==============================================================================
--- initng/tags/0.5.3/src/initng_main.c	(original)
+++ initng/tags/0.5.3/src/initng_main.c	Fri Mar  3 12:37:41 2006
@@ -318,7 +318,8 @@
 #ifdef DEBUG
     /* if we exit the program before sulogin, we wont be able to gdb initng */
     /*su_login(); */
-    printf("Initng segfaulted, will wait in 20 seconds for you to start a gdb, before execve(/sbin/initng-segfault);\n");
+    printf
+        ("Initng segfaulted, will wait in 20 seconds for you to start a gdb, before execve(/sbin/initng-segfault);\n");
     while (1)
         sleep(20);
 #endif

Modified: initng/tags/0.5.3/src/initng_plugin_hook.c
==============================================================================
--- initng/tags/0.5.3/src/initng_plugin_hook.c	(original)
+++ initng/tags/0.5.3/src/initng_plugin_hook.c	Fri Mar  3 12:37:41 2006
@@ -7,16 +7,16 @@
  * License as published by the Free Software Foundation; either
  * version 2 of the License, or (at your option) any later version.
  *
-                                                                                                     * This program is distributed in the hope that it will be useful,
-                                                                                                     * but WITHOUT ANY WARRANTY; without even the implied warranty of
-                                                                                                     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-                                                                                                     * Lesser General Public License for more details.
-                                                                                                     *
-                                                                                                     * You should have received a copy of the GNU Lesser General
-                                                                                                     * Public License along with this library; if not, write to the
-                                                                                                     * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
-                                                                                                     * Boston, MA 02111-1307, USA.
-                                                                                                     */
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General
+ * Public License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
@@ -31,6 +31,7 @@
                                  int line, s_call * t, void *hook)
 {
     s_call *current, *safe = NULL;
+
     assert(hook);
     assert(t);
 
@@ -64,7 +65,7 @@
 
     assert(hook);
     assert(t);
-    
+
     D_("\n\nAdding hook type %i from file %s, order %i\n", t, from_file,
        order);
 

Modified: initng/tags/0.5.3/src/initng_static_data_id.c
==============================================================================
--- initng/tags/0.5.3/src/initng_static_data_id.c	(original)
+++ initng/tags/0.5.3/src/initng_static_data_id.c	Fri Mar  3 12:37:41 2006
@@ -36,7 +36,8 @@
 };
 s_entry NEED = { "need", STRINGS, NULL, "Need to be up, ignore if not found."
 };
-s_entry REQUIRE = { "require", STRINGS, NULL, "Need to be up, fail if not found." };
+s_entry REQUIRE =
+    { "require", STRINGS, NULL, "Need to be up, fail if not found." };
 s_entry FROM_FILE = { "from_file", STRING, NULL, NULL };
 s_entry ENV = { "env", VARIABLE_STRING, NULL, "Sets an enviromental variable."
 };

Modified: initng/tags/0.5.3/src/initng_static_service_types.c
==============================================================================
--- initng/tags/0.5.3/src/initng_static_service_types.c	(original)
+++ initng/tags/0.5.3/src/initng_static_service_types.c	Fri Mar  3 12:37:41 2006
@@ -51,10 +51,14 @@
 static int start_DAEMON_or_SERVICE(active_db_h * service_to_start);
 static int stop_SERVICE_or_DAEMON(active_db_h * service_to_stop);
 
-stype_h TYPE_SERVICE = { "service", &start_DAEMON_or_SERVICE, &stop_SERVICE_or_DAEMON, NULL };
-stype_h TYPE_DAEMON = { "daemon", &start_DAEMON_or_SERVICE, &stop_SERVICE_or_DAEMON, NULL };
-stype_h TYPE_VIRTUAL = { "virtual", &start_DAEMON_or_SERVICE, &stop_SERVICE_or_DAEMON, NULL };
-stype_h TYPE_RUNLEVEL = { "runlevel", &start_DAEMON_or_SERVICE, &stop_SERVICE_or_DAEMON, NULL };
+stype_h TYPE_SERVICE =
+    { "service", &start_DAEMON_or_SERVICE, &stop_SERVICE_or_DAEMON, NULL };
+stype_h TYPE_DAEMON =
+    { "daemon", &start_DAEMON_or_SERVICE, &stop_SERVICE_or_DAEMON, NULL };
+stype_h TYPE_VIRTUAL =
+    { "virtual", &start_DAEMON_or_SERVICE, &stop_SERVICE_or_DAEMON, NULL };
+stype_h TYPE_RUNLEVEL =
+    { "runlevel", &start_DAEMON_or_SERVICE, &stop_SERVICE_or_DAEMON, NULL };
 stype_h TYPE_CLASS = { "class", NULL, NULL, NULL };
 
 void initng_service_add_static_stypes(void)

Modified: initng/tags/0.5.3/src/initng_static_states.c
==============================================================================
--- initng/tags/0.5.3/src/initng_static_states.c	(original)
+++ initng/tags/0.5.3/src/initng_static_states.c	Fri Mar  3 12:37:41 2006
@@ -73,7 +73,8 @@
 a_state_h WAITING_FOR_START_DEP = { "WAITING_FOR_START_DEP", IS_STARTING,
     &handle_WAITING_FOR_START_DEP
 };
-a_state_h START_DEP_MET = { "START_DEP_MET", IS_STARTING, &handle_START_DEP_MET };
+a_state_h START_DEP_MET =
+    { "START_DEP_MET", IS_STARTING, &handle_START_DEP_MET };
 a_state_h FAIL_STARTING = { "FAIL_STARTING", IS_FAILED, NULL };
 a_state_h DAEMON_EXIT_BAD = { "DAEMON_EXIT_BAD", IS_FAILED, NULL };
 a_state_h START_DEP_FAILED = { "START_DEP_FAILED", IS_FAILED, NULL };

Modified: initng/tags/0.5.3/src/initng_string_tools.c
==============================================================================
--- initng/tags/0.5.3/src/initng_string_tools.c	(original)
+++ initng/tags/0.5.3/src/initng_string_tools.c	Fri Mar  3 12:37:41 2006
@@ -144,9 +144,8 @@
 
     /* skip beginning first spaces */
     JUMP_SPACES(*string)
-                                                                                                        /* this might be an "comp pare" */
-                                                                                                        if
-                                                                                                        ((*string)[0] == '"' && to_cmp[0] != '"')
+        /* this might be an "comp pare" */
+        if ((*string)[0] == '"' && to_cmp[0] != '"')
         (*string)++;
 
     /* ok, strcasecmp this */

Modified: initng/tags/0.5.4.1/plugins/daemon/initng_daemon.c
==============================================================================
--- initng/tags/0.5.4.1/plugins/daemon/initng_daemon.c	(original)
+++ initng/tags/0.5.4.1/plugins/daemon/initng_daemon.c	Fri Mar  3 12:37:41 2006
@@ -800,8 +800,8 @@
     /*
      * Youst run if we checks for PID FILE
      */
-    if (daemon->current_state == &DAEMON_WAIT_FOR_PID_FILE && 
-	initng_active_db_is(&FORKS, daemon))
+    if (daemon->current_state == &DAEMON_WAIT_FOR_PID_FILE &&
+        initng_active_db_is(&FORKS, daemon))
     {
         try_get_pid(daemon);
         return;
@@ -1245,8 +1245,9 @@
         }
 
         /* finally set the new pid - but not if forks=no, because
-	   that can cause problems */
-        if(initng_active_db_is(&FORKS, s)) p->pid = pid;
+           that can cause problems */
+        if (initng_active_db_is(&FORKS, s))
+            p->pid = pid;
 
         /* set the new state */
         initng_common_mark_service(s, &DAEMON_RUNNING);

Modified: initng/tags/0.5.4.1/plugins/find/initng_find.c
==============================================================================
--- initng/tags/0.5.4.1/plugins/find/initng_find.c	(original)
+++ initng/tags/0.5.4.1/plugins/find/initng_find.c	Fri Mar  3 12:37:41 2006
@@ -29,7 +29,7 @@
 #include <assert.h>
 #include <sys/types.h>
 #include <dirent.h>
-                                                                                                                                                                                                     /*#include <dirent.h> *//* opendir() closedir() */
+                                                                                                                                                                                                                             /*#include <dirent.h> *//* opendir() closedir() */
 
 #include "../../src/initng_global.h"
 #include "../../src/initng_string_tools.h"

Modified: initng/tags/0.5.4/plugins/daemon/initng_daemon.c
==============================================================================
--- initng/tags/0.5.4/plugins/daemon/initng_daemon.c	(original)
+++ initng/tags/0.5.4/plugins/daemon/initng_daemon.c	Fri Mar  3 12:37:41 2006
@@ -800,8 +800,8 @@
     /*
      * Youst run if we checks for PID FILE
      */
-    if (daemon->current_state == &DAEMON_WAIT_FOR_PID_FILE && 
-	initng_active_db_is(&FORKS, daemon))
+    if (daemon->current_state == &DAEMON_WAIT_FOR_PID_FILE &&
+        initng_active_db_is(&FORKS, daemon))
     {
         try_get_pid(daemon);
         return;
@@ -1245,8 +1245,9 @@
         }
 
         /* finally set the new pid - but not if forks=no, because
-	   that can cause problems */
-        if(initng_active_db_is(&FORKS, s)) p->pid = pid;
+           that can cause problems */
+        if (initng_active_db_is(&FORKS, s))
+            p->pid = pid;
 
         /* set the new state */
         initng_common_mark_service(s, &DAEMON_RUNNING);

Modified: initng/tags/0.5.4/plugins/find/initng_find.c
==============================================================================
--- initng/tags/0.5.4/plugins/find/initng_find.c	(original)
+++ initng/tags/0.5.4/plugins/find/initng_find.c	Fri Mar  3 12:37:41 2006
@@ -29,7 +29,7 @@
 #include <assert.h>
 #include <sys/types.h>
 #include <dirent.h>
-                                                                                                     /*#include <dirent.h> *//* opendir() closedir() */
+                                                                                                                             /*#include <dirent.h> *//* opendir() closedir() */
 
 #include "../../src/initng_global.h"
 #include "../../src/initng_string_tools.h"

Modified: initng/trunk/plugins/find/initng_find.c
==============================================================================
--- initng/trunk/plugins/find/initng_find.c	(original)
+++ initng/trunk/plugins/find/initng_find.c	Fri Mar  3 12:37:41 2006
@@ -29,7 +29,7 @@
 #include <assert.h>
 #include <sys/types.h>
 #include <dirent.h>
-                                                                                                                                                                                                                             /*#include <dirent.h> *//* opendir() closedir() */
+                                                                                                                                                                                                                                                     /*#include <dirent.h> *//* opendir() closedir() */
 
 #include "../../src/initng_global.h"
 #include "../../src/initng_string_tools.h"

Modified: initng/trunk/plugins/service/initng_service.c
==============================================================================
--- initng/trunk/plugins/service/initng_service.c	(original)
+++ initng/trunk/plugins/service/initng_service.c	Fri Mar  3 12:37:41 2006
@@ -108,9 +108,9 @@
 s_entry STOP_TIMEOUT = { "stop_timeout", INT, &TYPE_SERVICE,
     "Let the stop process run maximum this time."
 };
-s_entry NEVER_KILL =
-    { "never_kill", SET, &TYPE_SERVICE,
-"This service is to important to be killed by any timeout!" };
+s_entry NEVER_KILL = { "never_kill", SET, &TYPE_SERVICE,
+    "This service is to important to be killed by any timeout!"
+};
 
 /*
  * ############################################################################


More information about the Initng-svn mailing list