summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-01-06 21:35:21 (GMT)
committernijtmans <nijtmans>2010-01-06 21:35:21 (GMT)
commit0ca164f2c3f073eea996040b76aa89e44fe81e1a (patch)
treee6ad158e27cb4aae64737fd8c11326891a51ac7f /unix/tclUnixCompat.c
parent6c429a0ad16df02718539a22c3e9f8d9b92df937 (diff)
downloadtcl-0ca164f2c3f073eea996040b76aa89e44fe81e1a.zip
tcl-0ca164f2c3f073eea996040b76aa89e44fe81e1a.tar.gz
tcl-0ca164f2c3f073eea996040b76aa89e44fe81e1a.tar.bz2
Various trivial fixes, discovered during CYGWIN porting attempt. All backported from trunk.
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r--unix/tclUnixCompat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c
index 3123ac0..4b28db6 100644
--- a/unix/tclUnixCompat.c
+++ b/unix/tclUnixCompat.c
@@ -6,7 +6,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixCompat.c,v 1.15 2008/02/28 20:14:12 jenglish Exp $
+ * RCS: @(#) $Id: tclUnixCompat.c,v 1.15.2.1 2010/01/06 21:35:22 nijtmans Exp $
*
*/
@@ -127,7 +127,7 @@ static int CopyGrp(struct group *tgtPtr, char *buf, int buflen);
static int CopyHostent(struct hostent *tgtPtr, char *buf,
int buflen);
static int CopyPwd(struct passwd *tgtPtr, char *buf, int buflen);
-static int CopyString(char *src, char *buf, int buflen);
+static int CopyString(CONST char *src, char *buf, int buflen);
#endif
#endif /* TCL_THREADS */
@@ -736,7 +736,7 @@ CopyArray(
p = buf + len;
for (j = 0; j < i; j++) {
- int sz = (elsize<0 ? strlen(src[j])+1 : elsize);
+ int sz = (elsize<0 ? (int) strlen(src[j]) + 1 : elsize);
len += sz;
if (len > buflen) {
@@ -772,7 +772,7 @@ CopyArray(
#ifdef NEED_COPYSTRING
static int
CopyString(
- char *src, /* String to copy. */
+ CONST char *src, /* String to copy. */
char *buf, /* Buffer to copy into. */
int buflen) /* Size of buffer. */
{