diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-14 06:42:58 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-14 06:42:58 (GMT) |
commit | c9376306301e578615cfee52d2121f78cb31a225 (patch) | |
tree | b80d507267bc38923d21ef904af4a227e2f4909d /compat/opendir.c | |
parent | 343b0349d4d4b41ca86832298dead909b1ef055d (diff) | |
download | tcl-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.c | 12 |
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; |