aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-01-06 22:47:57 +0100
committerChristian Grothoff <christian@grothoff.org>2024-01-06 22:48:02 +0100
commitb60499784c71207aa0c6306a94d6163236370540 (patch)
treeff2f49387519a1e4fb7aebf9d5d43b22011cb26a
parent1f137833b5e4d9998ea2aca804cad786f7bffcb3 (diff)
downloadgnunet-b60499784c71207aa0c6306a94d6163236370540.tar.gz
gnunet-b60499784c71207aa0c6306a94d6163236370540.zip
-formatting, nicer return types
m---------contrib/gana0
m---------contrib/handbook0
-rw-r--r--src/lib/util/common_logging.c9
3 files changed, 6 insertions, 3 deletions
diff --git a/contrib/gana b/contrib/gana
Subproject 91e5fd6edb1b3567fd151960059ffb911973a44 Subproject c1dc2dc975742c929a523c22d91f7d4f8278723
diff --git a/contrib/handbook b/contrib/handbook
Subproject 5c20e0aaa95c7cebc225d02231221d18fdcbdb5 Subproject e5b42badb7450aee5367e70294a0f8b1595945e
diff --git a/src/lib/util/common_logging.c b/src/lib/util/common_logging.c
index d27f70e83..458802a07 100644
--- a/src/lib/util/common_logging.c
+++ b/src/lib/util/common_logging.c
@@ -348,7 +348,7 @@ GNUNET_b2s (const void *buf,
348 * @param tm timestamp for which we should setup logging 348 * @param tm timestamp for which we should setup logging
349 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error 349 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
350 */ 350 */
351static int 351static enum GNUNET_GenericReturnValue
352setup_log_file (const struct tm *tm) 352setup_log_file (const struct tm *tm)
353{ 353{
354 static char last_fn[PATH_MAX + 1]; 354 static char last_fn[PATH_MAX + 1];
@@ -725,7 +725,7 @@ parse_all_definitions ()
725 * @param logfile which file to write log messages to (can be NULL) 725 * @param logfile which file to write log messages to (can be NULL)
726 * @return #GNUNET_OK on success 726 * @return #GNUNET_OK on success
727 */ 727 */
728int 728enum GNUNET_GenericReturnValue
729GNUNET_log_setup (const char *comp, 729GNUNET_log_setup (const char *comp,
730 const char *loglevel, 730 const char *loglevel,
731 const char *logfile) 731 const char *logfile)
@@ -737,7 +737,10 @@ GNUNET_log_setup (const char *comp,
737 parse_all_definitions (); 737 parse_all_definitions ();
738#endif 738#endif
739 GNUNET_free (component); 739 GNUNET_free (component);
740 GNUNET_asprintf (&component, "%s-%d", comp, getpid ()); 740 GNUNET_asprintf (&component,
741 "%s-%d",
742 comp,
743 getpid ());
741 GNUNET_free (component_nopid); 744 GNUNET_free (component_nopid);
742 component_nopid = GNUNET_strdup (comp); 745 component_nopid = GNUNET_strdup (comp);
743 746