[PATCH 6/7] child_spawn: constify n, just to make sure nothing mangles it

From: Roman I Khimov <khimov_at_altell.ru>
Date: Fri, 13 Mar 2015 17:24:25 +0300

We need its original value from function start to function end, so better have
it const.
---
 src/libstddjb/child_spawn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libstddjb/child_spawn.c b/src/libstddjb/child_spawn.c
index 0f08c3c..7490e7d 100644
--- a/src/libstddjb/child_spawn.c
+++ b/src/libstddjb/child_spawn.c
_at_@ -38,7 +38,7 @@
                 Parent reads on even ones, writes on odd ones.
  */
 
-pid_t child_spawn (char const *prog, char const *const *argv, char const *const *envp, int *fds, unsigned int n)
+pid_t child_spawn (char const *prog, char const *const *argv, char const *const *envp, int *fds, unsigned int const n)
 {
 #ifdef SKALIBS_HASPOSIXSPAWN
   posix_spawn_file_actions_t actions ;
-- 
2.1.4
Received on Fri Mar 13 2015 - 14:24:25 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC