summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-01 09:31:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-01 09:31:37 (GMT)
commitb89c01475a4aa977cfa56b2292504c60de9a7427 (patch)
tree4a2fd384cf9bd128a79d1713e710adeb4174a647 /unix/tclUnixCompat.c
parent8f2b15e6db98e069f1a7296f7c96da79b5515aad (diff)
parentb924d89e299f95beaf3c6bd1ae4adf16aa3c38d4 (diff)
downloadtcl-b89c01475a4aa977cfa56b2292504c60de9a7427.zip
tcl-b89c01475a4aa977cfa56b2292504c60de9a7427.tar.gz
tcl-b89c01475a4aa977cfa56b2292504c60de9a7427.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r--unix/tclUnixCompat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c
index aa25c6b..e0a826c 100644
--- a/unix/tclUnixCompat.c
+++ b/unix/tclUnixCompat.c
@@ -685,8 +685,8 @@ CopyGrp(
char *buf,
int buflen)
{
- register char *p = buf;
- register int copied, len = 0;
+ char *p = buf;
+ int copied, len = 0;
/*
* Copy username.
@@ -887,7 +887,7 @@ CopyArray(
int buflen) /* Size of buffer. */
{
int i, j, len = 0;
- char *p, **new;
+ char *p, **newBuffer;
if (src == NULL) {
return 0;
@@ -903,7 +903,7 @@ CopyArray(
return -1;
}
- new = (char **) buf;
+ newBuffer = (char **) buf;
p = buf + len;
for (j = 0; j < i; j++) {
@@ -914,10 +914,10 @@ CopyArray(
return -1;
}
memcpy(p, src[j], sz);
- new[j] = p;
+ newBuffer[j] = p;
p = buf + len;
}
- new[j] = NULL;
+ newBuffer[j] = NULL;
return len;
}