summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/win32lib.h
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-10-06 12:35:44 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-10-06 12:35:44 +0000
commitadd36363c1ac31e2e51925e69275c4dbdf26401f (patch)
treeb58d5538c0f0d4dfb9b303d06cc084ef65535456 /Build/source/texk/kpathsea/win32lib.h
parent81af1f59bd07f19cc4d327d5f28c300c37501d6a (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.h')
-rw-r--r--Build/source/texk/kpathsea/win32lib.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/win32lib.h b/Build/source/texk/kpathsea/win32lib.h
index a613339712d..8aac50c8592 100644
--- a/Build/source/texk/kpathsea/win32lib.h
+++ b/Build/source/texk/kpathsea/win32lib.h
@@ -247,10 +247,10 @@
#undef min
#endif
-extern KPSEDLL FILE *kpathsea_win32_popen (kpathsea kpse, char *cmd, char *mode);
+extern KPSEDLL FILE *kpathsea_win32_popen (kpathsea kpse, const char *cmd, const char *mode);
extern KPSEDLL int kpathsea_win32_pclose (kpathsea kpse, FILE *f);
extern KPSEDLL struct passwd *kpathsea_getpwnam (kpathsea kpse, char *name);
-extern KPSEDLL int kpathsea_win32_system(kpathsea kpse, char *cmd);
+extern KPSEDLL int kpathsea_win32_system(kpathsea kpse, const char *cmd);
#if defined (KPSE_COMPAT_API)
extern KPSEDLL struct passwd *getpwnam (char *name);
@@ -259,9 +259,9 @@ extern KPSEDLL struct passwd *getpwnam (char *name);
#define popen(cmd, mode) win32_popen(cmd, mode)
#define pclose(file) win32_pclose(file)
/* Functions for WIN32 */
-extern KPSEDLL FILE *popen(char * str, char * str2);
+extern KPSEDLL FILE *popen(const char * str, const char * str2);
extern KPSEDLL int pclose(FILE * f);
-extern KPSEDLL int system(char * cmd);
+extern KPSEDLL int system(const char * cmd);
#endif /* KPSE_COMPAT_API */
extern KPSEDLL void xfseek64 (FILE *f, __int64 offset, int wherefrom, const char *fname);