diff options
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 009e53d17..4aafe6bae 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -61,7 +61,7 @@ child_info_spawn *chExeced; static const char * perhaps_suffix (const char *prog, path_conv& buf, int& err, unsigned opt) { - char *ext; + const char *ext; err = 0; debug_printf ("prog '%s'", prog); @@ -87,14 +87,6 @@ perhaps_suffix (const char *prog, path_conv& buf, int& err, unsigned opt) return ext; } -inline char * -path_conv::set_path (const char *p) -{ - if (path) - cfree (path); - return path = cstrdup (p); -} - /* Find an executable name, possibly by appending known executable suffixes to it. The win32-translated name is placed in 'buf'. Any found suffix is returned in known_suffix. |