Commit afacaa1b authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

src/callproc.c (child_setup): Silence compiler warnings.

parent b61d71e4
2013-07-23 Juanma Barranquero <lekktu@gmail.com>
* callproc.c (child_setup)[!WINDOWSNT]: Move exec_errno and pid
here to silence compiler warnings.
2013-07-22 Paul Eggert <eggert@cs.ucla.edu>
* sysdep.c (frame) [__FreeBSD__]: #define to freebsd_frame
......
......@@ -1193,13 +1193,14 @@ child_setup (int in, int out, int err, char **new_argv, bool set_pgrp,
{
char **env;
char *pwd_var;
int exec_errno;
#ifdef WINDOWSNT
int cpid;
HANDLE handles[3];
#endif /* WINDOWSNT */
#else
int exec_errno;
pid_t pid = getpid ();
#endif /* WINDOWSNT */
/* Note that use of alloca is always safe here. It's obvious for systems
that do not have true vfork or that have true (stack) alloca.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment