aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/gnunet_os_lib.h4
-rw-r--r--src/util/os_priority.c12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h
index c5e206292..aa1c17cf9 100644
--- a/src/include/gnunet_os_lib.h
+++ b/src/include/gnunet_os_lib.h
@@ -395,14 +395,14 @@ GNUNET_OS_start_process_v (int pipe_control,
395 * in this string when they are separated by spaces. 395 * in this string when they are separated by spaces.
396 * @param ... more arguments. Should be of type `char *`. It is valid 396 * @param ... more arguments. Should be of type `char *`. It is valid
397 * to have the arguments in these strings when they are separated by 397 * to have the arguments in these strings when they are separated by
398 * spaces. 398 * spaces. The last argument MUST be NULL.
399 * @return pointer to process structure of the new process, NULL on error 399 * @return pointer to process structure of the new process, NULL on error
400 */ 400 */
401struct GNUNET_OS_Process * 401struct GNUNET_OS_Process *
402GNUNET_OS_start_process_s (int pipe_control, 402GNUNET_OS_start_process_s (int pipe_control,
403 unsigned int std_inheritance, 403 unsigned int std_inheritance,
404 const SOCKTYPE * lsocks, 404 const SOCKTYPE * lsocks,
405 const char *first_arg, ...); 405 const char *filename, ...);
406 406
407 407
408/** 408/**
diff --git a/src/util/os_priority.c b/src/util/os_priority.c
index de5c84d4c..83fccb71d 100644
--- a/src/util/os_priority.c
+++ b/src/util/os_priority.c
@@ -1343,14 +1343,14 @@ GNUNET_OS_start_process_v (int pipe_control,
1343 * in this string when they are separated by spaces. 1343 * in this string when they are separated by spaces.
1344 * @param ... more arguments. Should be of type `char *`. It is valid 1344 * @param ... more arguments. Should be of type `char *`. It is valid
1345 * to have the arguments in these strings when they are separated by 1345 * to have the arguments in these strings when they are separated by
1346 * spaces. 1346 * spaces. The last argument MUST be NULL.
1347 * @return pointer to process structure of the new process, NULL on error 1347 * @return pointer to process structure of the new process, NULL on error
1348 */ 1348 */
1349struct GNUNET_OS_Process * 1349struct GNUNET_OS_Process *
1350GNUNET_OS_start_process_s (int pipe_control, 1350GNUNET_OS_start_process_s (int pipe_control,
1351 unsigned int std_inheritance, 1351 unsigned int std_inheritance,
1352 const SOCKTYPE * lsocks, 1352 const SOCKTYPE * lsocks,
1353 const char *first_arg, ...) 1353 const char *filename, ...)
1354{ 1354{
1355 va_list ap; 1355 va_list ap;
1356 char **argv; 1356 char **argv;
@@ -1367,8 +1367,8 @@ GNUNET_OS_start_process_s (int pipe_control,
1367 size_t len; 1367 size_t len;
1368 1368
1369 argv_size = 1; 1369 argv_size = 1;
1370 va_start (ap, first_arg); 1370 va_start (ap, filename);
1371 arg = first_arg; 1371 arg = filename;
1372 last = NULL; 1372 last = NULL;
1373 do 1373 do
1374 { 1374 {
@@ -1405,8 +1405,8 @@ GNUNET_OS_start_process_s (int pipe_control,
1405 1405
1406 argv = GNUNET_malloc (argv_size * sizeof (char *)); 1406 argv = GNUNET_malloc (argv_size * sizeof (char *));
1407 argv_size = 0; 1407 argv_size = 0;
1408 va_start (ap, first_arg); 1408 va_start (ap, filename);
1409 arg = first_arg; 1409 arg = filename;
1410 last = NULL; 1410 last = NULL;
1411 do 1411 do
1412 { 1412 {