[icinga-checkins] icinga.org: icinga-core/gbeutner/style: Fixed some more comments / blank lines.

git at icinga.org git at icinga.org
Wed Jul 13 13:33:42 CEST 2011


Module: icinga-core
Branch: gbeutner/style
Commit: 2c38ae0d08b2e0cd5e131e9a6e5ad7d2f02e9cdf
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=2c38ae0d08b2e0cd5e131e9a6e5ad7d2f02e9cdf

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Tue Jul 12 15:09:51 2011 +0200

Fixed some more comments / blank lines.

---

 module/idoutils/src/file2sock.c |    2 --
 module/idoutils/src/idomod.c    |   28 +++++++++++++++++-----------
 2 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/module/idoutils/src/file2sock.c b/module/idoutils/src/file2sock.c
index 9523930..eab7bbb 100644
--- a/module/idoutils/src/file2sock.c
+++ b/module/idoutils/src/file2sock.c
@@ -34,7 +34,6 @@ main(int argc, char **argv)
 	char ch[1];
 	int result = 0;
 
-
 	result = process_arguments(argc, argv);
 
 	if (result != IDO_OK || show_help == IDO_TRUE
@@ -137,7 +136,6 @@ main(int argc, char **argv)
 	return result;
 }
 
-
 /* process command line arguments */
 int
 process_arguments(int argc, char **argv)
diff --git a/module/idoutils/src/idomod.c b/module/idoutils/src/idomod.c
index b124b35..88bb01c 100644
--- a/module/idoutils/src/idomod.c
+++ b/module/idoutils/src/idomod.c
@@ -113,23 +113,23 @@ int nebmodule_init(int flags, char *args, void *handle)
 
 	/* process arguments */
 	if (idomod_process_module_args(args) == IDO_ERROR) {
-		idomod_write_to_logs
-		    ("idomod: An error occurred while attempting to process module arguments.",
+		idomod_write_to_logs("idomod: An error occurred while "
+		    "attempting to process module arguments.",
 		    NSLOG_INFO_MESSAGE);
 		return -1;
 	}
 
 	if (idomod_sink_type == IDO_SINK_UNIXSOCKET && use_ssl == IDO_TRUE) {
-		idomod_write_to_logs
-		    ("idomod: use_ssl=1 while using socket_type=unix is not allowed. Aborting...",
+		idomod_write_to_logs("idomod: use_ssl=1 while using "
+		    "socket_type=unix is not allowed. Aborting...",
 		    NSLOG_INFO_MESSAGE);
 		return -1;
 	}
 
 	/* do some initialization stuff... */
 	if (idomod_init() == IDO_ERROR) {
-		idomod_write_to_logs
-		    ("idomod: An error occurred while attempting to initialize.",
+		idomod_write_to_logs("idomod: An error occurred while "
+		    "attempting to initialize.",
 		    NSLOG_INFO_MESSAGE);
 		return -1;
 	}
@@ -198,7 +198,10 @@ idomod_init(void)
 	idomod_log_debug_info(IDOMOD_DEBUGL_PROCESSINFO, 2,
 	    "idomod_init() start\n");
 
-	/* initialize some vars (needed for restarts of daemon - why, if the module gets reloaded ???) */
+	/*
+	 * initialize some vars (needed for restarts of daemon - why, if
+	 * the module gets reloaded?)
+	 */
 	idomod_sink_is_open = IDO_FALSE;
 	idomod_sink_previously_open = IDO_FALSE;
 	idomod_sink_fd = -1;
@@ -213,7 +216,10 @@ idomod_init(void)
 	idomod_load_unprocessed_data(idomod_buffer_file);
 
 	/* open data sink and say hello */
-	/* 05/04/06 - modified to flush buffer items that may have been read in from file */
+	/*
+	 * 05/04/06 - modified to flush buffer items that may have been
+	 * read in from file
+	 */
 	idomod_write_to_sink("\n", IDO_FALSE, IDO_TRUE);
 
 	/* register callbacks */
@@ -756,9 +762,9 @@ idomod_write_to_sink(char *buf, int buffer_write, int flush_buffer)
 
 				if (reconnect == IDO_TRUE) {
 					if (asprintf(&temp_buffer,
-						"idomod: Successfully reconnected to data sink!  %lu items lost, %lu queued items to flush.",
-						sinkbuf.overflow,
-						sinkbuf.items) == -1)
+					    "idomod: Successfully reconnected to data sink!  %lu items lost, %lu queued items to flush.",
+					    sinkbuf.overflow,
+					    sinkbuf.items) == -1)
 						temp_buffer = NULL;
 
 					idomod_hello_sink(TRUE, TRUE);





More information about the icinga-checkins mailing list