summaryrefslogtreecommitdiffstats
path: root/compat/opendir.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-14 06:42:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-14 06:42:58 (GMT)
commitc9376306301e578615cfee52d2121f78cb31a225 (patch)
treeb80d507267bc38923d21ef904af4a227e2f4909d /compat/opendir.c
parent343b0349d4d4b41ca86832298dead909b1ef055d (diff)
downloadtcl-c9376306301e578615cfee52d2121f78cb31a225.zip
tcl-c9376306301e578615cfee52d2121f78cb31a225.tar.gz
tcl-c9376306301e578615cfee52d2121f78cb31a225.tar.bz2
Remove "register" keyword in various places. Also add some type-casts to help C++ compatibility.
Diffstat (limited to 'compat/opendir.c')
-rw-r--r--compat/opendir.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/compat/opendir.c b/compat/opendir.c
index 7a49566..25a7ada 100644
--- a/compat/opendir.c
+++ b/compat/opendir.c
@@ -20,9 +20,9 @@ DIR *
opendir(
char *name)
{
- register DIR *dirp;
- register int fd;
- char *myname;
+ DIR *dirp;
+ int fd;
+ const char *myname;
myname = ((*name == '\0') ? "." : name);
if ((fd = open(myname, 0, 0)) == -1) {
@@ -65,9 +65,9 @@ struct olddirect {
struct dirent *
readdir(
- register DIR *dirp)
+ DIR *dirp)
{
- register struct olddirect *dp;
+ struct olddirect *dp;
static struct dirent dir;
for (;;) {
@@ -101,7 +101,7 @@ readdir(
void
closedir(
- register DIR *dirp)
+ DIR *dirp)
{
close(dirp->dd_fd);
dirp->dd_fd = -1;