From 9150ecf15eb4e82037c2d8b30140ab4bccfddc2b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 11 Jun 2023 18:35:05 +0200 Subject: indentation fixes NEWS: - --- src/include/gnunet_child_management_lib.h | 3 +-- src/include/gnunet_helper_lib.h | 15 +++++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/include/gnunet_child_management_lib.h b/src/include/gnunet_child_management_lib.h index 39eb03760..ab0ab93eb 100644 --- a/src/include/gnunet_child_management_lib.h +++ b/src/include/gnunet_child_management_lib.h @@ -49,8 +49,7 @@ struct GNUNET_ChildWaitHandle; * @param cls handle for the callback * @param type type of the process * @param exit_code status code of the process - * -*/ + */ typedef void (*GNUNET_ChildCompletedCallback)(void *cls, enum GNUNET_OS_ProcessStatusType type, diff --git a/src/include/gnunet_helper_lib.h b/src/include/gnunet_helper_lib.h index 2279abb24..c329c4a33 100644 --- a/src/include/gnunet_helper_lib.h +++ b/src/include/gnunet_helper_lib.h @@ -38,7 +38,7 @@ * @{ */ -#if !defined (__GNUNET_UTIL_LIB_H_INSIDE__) +#if ! defined (__GNUNET_UTIL_LIB_H_INSIDE__) #error "Only can be included directly." #endif @@ -99,8 +99,9 @@ GNUNET_HELPER_start (int with_control_pipe, * stdin; #GNUNET_NO to signal termination by sending SIGTERM to helper * @return #GNUNET_OK on success; #GNUNET_SYSERR on error */ -int -GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, int soft_kill); +enum GNUNET_GenericReturnValue +GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, + int soft_kill); /** @@ -111,7 +112,7 @@ GNUNET_HELPER_kill (struct GNUNET_HELPER_Handle *h, int soft_kill); * @param h the helper handle * @return #GNUNET_OK on success; #GNUNET_SYSERR on error */ -int +enum GNUNET_GenericReturnValue GNUNET_HELPER_wait (struct GNUNET_HELPER_Handle *h); @@ -144,8 +145,10 @@ GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h, int soft_kill); * #GNUNET_NO if helper process died * #GNUNET_SYSERR during GNUNET_HELPER_destroy */ -typedef void (*GNUNET_HELPER_Continuation)(void *cls, - int result); +typedef void +(*GNUNET_HELPER_Continuation)( + void *cls, + enum GNUNET_GenericReturnValue result); /** -- cgit v1.2.3