aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_logging.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-23 15:25:36 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-23 15:25:36 +0000
commit69f9662283ade69910b500e00f491a47c1b4eb8c (patch)
treef702fa9247b3cf5243edaa5ecefcc707b4e3ea62 /src/util/common_logging.c
parentd53ca636148eee4cd5841b7e862935736a107104 (diff)
downloadgnunet-69f9662283ade69910b500e00f491a47c1b4eb8c.tar.gz
gnunet-69f9662283ade69910b500e00f491a47c1b4eb8c.zip
-doxygen
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r--src/util/common_logging.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c
index a2338f1c9..19ae50257 100644
--- a/src/util/common_logging.c
+++ b/src/util/common_logging.c
@@ -321,7 +321,7 @@ log_rotate (const char *new_name)
321 * Setup the log file. 321 * Setup the log file.
322 * 322 *
323 * @param tm timestamp for which we should setup logging 323 * @param tm timestamp for which we should setup logging
324 * @return GNUNET_OK on success, GNUNET_SYSERR on error 324 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
325 */ 325 */
326static int 326static int
327setup_log_file (const struct tm *tm) 327setup_log_file (const struct tm *tm)
@@ -703,7 +703,7 @@ GNUNET_log_setup (const char *comp,
703 * Add a custom logger. 703 * Add a custom logger.
704 * 704 *
705 * @param logger log function 705 * @param logger log function
706 * @param logger_cls closure for logger 706 * @param logger_cls closure for @a logger
707 */ 707 */
708void 708void
709GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls) 709GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls)
@@ -722,7 +722,7 @@ GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls)
722 * Remove a custom logger. 722 * Remove a custom logger.
723 * 723 *
724 * @param logger log function 724 * @param logger log function
725 * @param logger_cls closure for logger 725 * @param logger_cls closure for @a logger
726 */ 726 */
727void 727void
728GNUNET_logger_remove (GNUNET_Logger logger, void *logger_cls) 728GNUNET_logger_remove (GNUNET_Logger logger, void *logger_cls)
@@ -732,14 +732,14 @@ GNUNET_logger_remove (GNUNET_Logger logger, void *logger_cls)
732 732
733 prev = NULL; 733 prev = NULL;
734 pos = loggers; 734 pos = loggers;
735 while ((pos != NULL) && 735 while ((NULL != pos) &&
736 ((pos->logger != logger) || (pos->logger_cls != logger_cls))) 736 ((pos->logger != logger) || (pos->logger_cls != logger_cls)))
737 { 737 {
738 prev = pos; 738 prev = pos;
739 pos = pos->next; 739 pos = pos->next;
740 } 740 }
741 GNUNET_assert (pos != NULL); 741 GNUNET_assert (NULL != pos);
742 if (prev == NULL) 742 if (NULL == prev)
743 loggers = pos->next; 743 loggers = pos->next;
744 else 744 else
745 prev->next = pos->next; 745 prev->next = pos->next;
@@ -1233,7 +1233,8 @@ GNUNET_log_config_invalid (enum GNUNET_ErrorType kind,
1233/** 1233/**
1234 * Initializer 1234 * Initializer
1235 */ 1235 */
1236void __attribute__ ((constructor)) GNUNET_util_cl_init () 1236void __attribute__ ((constructor))
1237GNUNET_util_cl_init ()
1237{ 1238{
1238 GNUNET_stderr = stderr; 1239 GNUNET_stderr = stderr;
1239#ifdef MINGW 1240#ifdef MINGW
@@ -1249,7 +1250,8 @@ void __attribute__ ((constructor)) GNUNET_util_cl_init ()
1249/** 1250/**
1250 * Destructor 1251 * Destructor
1251 */ 1252 */
1252void __attribute__ ((destructor)) GNUNET_util_cl_fini () 1253void __attribute__ ((destructor))
1254GNUNET_util_cl_fini ()
1253{ 1255{
1254#if WINDOWS 1256#if WINDOWS
1255 DeleteCriticalSection (&output_message_cs); 1257 DeleteCriticalSection (&output_message_cs);