diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2011-10-06 12:35:44 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2011-10-06 12:35:44 +0000 |
commit | add36363c1ac31e2e51925e69275c4dbdf26401f (patch) | |
tree | b58d5538c0f0d4dfb9b303d06cc084ef65535456 /Build/source/texk/kpathsea/win32lib.c | |
parent | 81af1f59bd07f19cc4d327d5f28c300c37501d6a (diff) |
w32: use const char * in system() and popen()
git-svn-id: svn://tug.org/texlive/trunk@24217 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/win32lib.c')
-rw-r--r-- | Build/source/texk/kpathsea/win32lib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/win32lib.c b/Build/source/texk/kpathsea/win32lib.c index 0ca0367d466..fd1636436de 100644 --- a/Build/source/texk/kpathsea/win32lib.c +++ b/Build/source/texk/kpathsea/win32lib.c @@ -20,7 +20,7 @@ #include <kpathsea/concatn.h> #include <kpathsea/variable.h> -FILE * __cdecl kpathsea_win32_popen (kpathsea kpse, char *cmd, char *mode) +FILE * __cdecl kpathsea_win32_popen (kpathsea kpse, const char *cmd, const char *mode) { STARTUPINFO si; PROCESS_INFORMATION pi; @@ -1075,7 +1075,7 @@ build_cmdline(char ***cmd, char *input, char *output) under Win9x. This is a workaround for this bug. */ -int __cdecl kpathsea_win32_system(kpathsea kpse, char *cmd) +int __cdecl kpathsea_win32_system(kpathsea kpse, const char *cmd) { STARTUPINFO si; PROCESS_INFORMATION pi; @@ -1266,7 +1266,7 @@ int __cdecl kpathsea_win32_system(kpathsea kpse, char *cmd) } #if defined (KPSE_COMPAT_API) -FILE * __cdecl win32_popen (char *cmd, char *mode) +FILE * __cdecl win32_popen (const char *cmd, const char *mode) { return kpathsea_win32_popen(kpse_def, cmd, mode); } @@ -1315,7 +1315,7 @@ getpwnam (char *name) return kpathsea_getpwnam (kpse_def, name); } -int __cdecl win32_system(char *cmd) +int __cdecl win32_system(const char *cmd) { return kpathsea_win32_system (kpse_def, cmd); } |