[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -indentation, better rvalues
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -indentation, better rvalues |
Date: |
Tue, 31 May 2022 23:07:34 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 02a2c3560 -indentation, better rvalues
02a2c3560 is described below
commit 02a2c3560aa08c3c7f389706b0e24007e2010bc5
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue May 31 23:07:20 2022 +0200
-indentation, better rvalues
---
src/util/os_priority.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/util/os_priority.c b/src/util/os_priority.c
index 08320b291..843b4734c 100644
--- a/src/util/os_priority.c
+++ b/src/util/os_priority.c
@@ -874,7 +874,7 @@ GNUNET_OS_start_process_s (enum GNUNET_OS_InheritStdioFlags
std_inheritance,
* @param options WNOHANG if non-blocking is desired
* @return #GNUNET_OK on success, #GNUNET_NO if the process is still running,
#GNUNET_SYSERR otherwise
*/
-static int
+static enum GNUNET_GenericReturnValue
process_status (struct GNUNET_OS_Process *proc,
enum GNUNET_OS_ProcessStatusType *type,
unsigned long *code,
@@ -884,10 +884,13 @@ process_status (struct GNUNET_OS_Process *proc,
int ret;
GNUNET_assert (0 != proc);
- ret = waitpid (proc->pid, &status, options);
+ ret = waitpid (proc->pid,
+ &status,
+ options);
if (ret < 0)
{
- LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING, "waitpid");
+ LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING,
+ "waitpid");
return GNUNET_SYSERR;
}
if (0 == ret)
@@ -898,7 +901,8 @@ process_status (struct GNUNET_OS_Process *proc,
}
if (proc->pid != ret)
{
- LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING, "waitpid");
+ LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING,
+ "waitpid");
return GNUNET_SYSERR;
}
if (WIFEXITED (status))
@@ -942,7 +946,7 @@ process_status (struct GNUNET_OS_Process *proc,
* @param code return code/signal number
* @return #GNUNET_OK on success, #GNUNET_NO if the process is still running,
#GNUNET_SYSERR otherwise
*/
-int
+enum GNUNET_GenericReturnValue
GNUNET_OS_process_status (struct GNUNET_OS_Process *proc,
enum GNUNET_OS_ProcessStatusType *type,
unsigned long *code)
@@ -960,7 +964,7 @@ GNUNET_OS_process_status (struct GNUNET_OS_Process *proc,
* @param code return code/signal number
* @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise
*/
-int
+enum GNUNET_GenericReturnValue
GNUNET_OS_process_wait_status (struct GNUNET_OS_Process *proc,
enum GNUNET_OS_ProcessStatusType *type,
unsigned long *code)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -indentation, better rvalues,
gnunet <=