summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-25 08:36:34 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-25 08:36:34 (GMT)
commit37feaf8aeca6ecef96e01f328eda73a61ad11470 (patch)
tree3c69700957b9042240904689e1c7d2fd2c824b78 /unix/tclUnixCompat.c
parentd15cb9192ba450f94d3817c4953364a30997d723 (diff)
downloadtcl-37feaf8aeca6ecef96e01f328eda73a61ad11470.zip
tcl-37feaf8aeca6ecef96e01f328eda73a61ad11470.tar.gz
tcl-37feaf8aeca6ecef96e01f328eda73a61ad11470.tar.bz2
Eliminate more usage of C++-specific keywords in C-code.
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;
}