From add36363c1ac31e2e51925e69275c4dbdf26401f Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Thu, 6 Oct 2011 12:35:44 +0000 Subject: w32: use const char * in system() and popen() git-svn-id: svn://tug.org/texlive/trunk@24217 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/win32lib.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Build/source/texk/kpathsea/win32lib.h') 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); -- cgit v1.2.3