summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cvs/diff/dir.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>2001-09-28 22:45:35 +0000
committertholo <tholo@openbsd.org>2001-09-28 22:45:35 +0000
commit43c1707e6f6829177cb1974ee6615ce6c1307689 (patch)
tree233c059b44960ac679320e3e905b66e024ba011f /gnu/usr.bin/cvs/diff/dir.c
parentHack to work around bootpaths like: (diff)
downloadwireguard-openbsd-43c1707e6f6829177cb1974ee6615ce6c1307689.tar.xz
wireguard-openbsd-43c1707e6f6829177cb1974ee6615ce6c1307689.zip
Latest from Cyclic Software
Diffstat (limited to 'gnu/usr.bin/cvs/diff/dir.c')
-rw-r--r--gnu/usr.bin/cvs/diff/dir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.bin/cvs/diff/dir.c b/gnu/usr.bin/cvs/diff/dir.c
index fae74e82c65..da497dc4a6b 100644
--- a/gnu/usr.bin/cvs/diff/dir.c
+++ b/gnu/usr.bin/cvs/diff/dir.c
@@ -61,7 +61,7 @@ dir_sort (dir, dirdata)
if (dir->desc != -1)
{
/* Open the directory and check for errors. */
- register DIR *reading = opendir (dir->name);
+ register DIR *reading = CVS_OPENDIR (dir->name);
if (!reading)
return -1;
@@ -74,7 +74,7 @@ dir_sort (dir, dirdata)
/* Read the directory entries, and insert the subfiles
into the `data' table. */
- while ((errno = 0, (next = readdir (reading)) != 0))
+ while ((errno = 0, (next = CVS_READDIR (reading)) != 0))
{
char *d_name = next->d_name;
size_t d_size = NAMLEN (next) + 1;
@@ -96,14 +96,14 @@ dir_sort (dir, dirdata)
if (errno)
{
int e = errno;
- closedir (reading);
+ CVS_CLOSEDIR (reading);
errno = e;
return -1;
}
#if CLOSEDIR_VOID
- closedir (reading);
+ CVS_CLOSEDIR (reading);
#else
- if (closedir (reading) != 0)
+ if (CVS_CLOSEDIR (reading) != 0)
return -1;
#endif
}