summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-04 22:23:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-04 22:23:27 (GMT)
commit20fa4c6e17879fa6ca21b024999dad6412d0f8f4 (patch)
treef4c0055cc2f0c75b498e243dcaadf2d2caad5e83 /win/tclWinPipe.c
parent07407a7286052d1c5f198558a6bc27a443268242 (diff)
downloadtcl-20fa4c6e17879fa6ca21b024999dad6412d0f8f4.zip
tcl-20fa4c6e17879fa6ca21b024999dad6412d0f8f4.tar.gz
tcl-20fa4c6e17879fa6ca21b024999dad6412d0f8f4.tar.bz2
Fix signed<->unsigned comparsion warning (occurring in some gcc compilation flags).
Micro-optimization: Use char array in stead of const char pointer for static variable.
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index e596cac..e33273b 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1621,9 +1621,9 @@ BuildCommandLine(
Tcl_DString ds;
/* characters to enclose in quotes if unpaired quote flag set */
- const static char *specMetaChars = "&|^<>!()%";
- /* characters to enclose in quotes in any case (regardless unpaired-flag) */
- const static char *specMetaChars2 = "%";
+ static const char specMetaChars[] = "&|^<>!()%";
+ /* character to enclose in quotes in any case (regardless unpaired-flag) */
+ static const char specMetaChars2[] = "%";
/* Quote flags:
* CL_ESCAPE - escape argument;