bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regression in spawni.c on native Windows


From: Adrian Ebeling
Subject: Regression in spawni.c on native Windows
Date: Mon, 21 Dec 2020 14:36:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Hi,

in commit 29d55bf8 (Mon Dec 14 2020), const qualifiers were added in spawn_int.h:

extern int __spawni (pid_t *pid, const char *path,
                     const posix_spawn_file_actions_t *file_actions,
                     const posix_spawnattr_t *attrp, const char *const argv[],
                                                  /* ^^^^^ */
                     const char *const envp[], int use_path);
                  /* ^^^^^ */

However, the implementation for Windows in in spawni.c was not changed:

/* Native Windows API.  */
int
__spawni (pid_t *pid, const char *file,
          const posix_spawn_file_actions_t *file_actions,
          const posix_spawnattr_t *attrp, char *const argv[],
                                      /* ^-- missing "const" */
          char *const envp[], int use_path)
      /* ^-- missing "const" */

So there's a compile error because the types don't match.

Regards,
Adrian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]