-doxygen
authorSree Harsha Totakura <totakura@in.tum.de>
Mon, 9 Dec 2013 14:44:37 +0000 (14:44 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Mon, 9 Dec 2013 14:44:37 +0000 (14:44 +0000)
src/include/gnunet_os_lib.h
src/util/os_priority.c

index c5e2062928118c8bfd90ba69df71d3bd5aec46e3..aa1c17cf99fd647791017c368806550d4cdbac12 100644 (file)
@@ -395,14 +395,14 @@ GNUNET_OS_start_process_v (int pipe_control,
  *         in this string when they are separated by spaces.
  * @param ... more arguments.  Should be of type `char *`.  It is valid
  *         to have the arguments in these strings when they are separated by
- *         spaces.
+ *         spaces.  The last argument MUST be NULL.
  * @return pointer to process structure of the new process, NULL on error
  */
 struct GNUNET_OS_Process *
 GNUNET_OS_start_process_s (int pipe_control,
                            unsigned int std_inheritance,
                            const SOCKTYPE * lsocks,
-                           const char *first_arg, ...);
+                           const char *filename, ...);
 
 
 /**
index de5c84d4c704a8dbd84ef158f200c70794454422..83fccb71d2ca6f395ef5add04c3fe725c909015a 100644 (file)
@@ -1343,14 +1343,14 @@ GNUNET_OS_start_process_v (int pipe_control,
  *         in this string when they are separated by spaces.
  * @param ... more arguments.  Should be of type `char *`.  It is valid
  *         to have the arguments in these strings when they are separated by
- *         spaces.
+ *         spaces.  The last argument MUST be NULL.
  * @return pointer to process structure of the new process, NULL on error
  */
 struct GNUNET_OS_Process *
 GNUNET_OS_start_process_s (int pipe_control,
                            unsigned int std_inheritance,
                            const SOCKTYPE * lsocks,
-                           const char *first_arg, ...)
+                           const char *filename, ...)
 {
   va_list ap;
   char **argv;
@@ -1367,8 +1367,8 @@ GNUNET_OS_start_process_s (int pipe_control,
   size_t len;
 
   argv_size = 1;
-  va_start (ap, first_arg);
-  arg = first_arg;
+  va_start (ap, filename);
+  arg = filename;
   last = NULL;
   do
   {
@@ -1405,8 +1405,8 @@ GNUNET_OS_start_process_s (int pipe_control,
 
   argv = GNUNET_malloc (argv_size * sizeof (char *));
   argv_size = 0;
-  va_start (ap, first_arg);
-  arg = first_arg;
+  va_start (ap, filename);
+  arg = filename;
   last = NULL;
   do
   {