summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/diff/dir.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-10 09:43:22 +0000
committerpeter <peter@FreeBSD.org>2001-08-10 09:43:22 +0000
commitc132709d1892a50d7915da8685face38ada32e4f (patch)
tree91ad9c2f4db08545ffa8883e62c900d4001de987 /contrib/cvs/diff/dir.c
parente832f306d6c3f06dc0d801543a4302233e24e063 (diff)
parenta037ef8f32200b26968e77344bcfb963251fa8b9 (diff)
downloadFreeBSD-src-c132709d1892a50d7915da8685face38ada32e4f.zip
FreeBSD-src-c132709d1892a50d7915da8685face38ada32e4f.tar.gz
This commit was generated by cvs2svn to compensate for changes in r81404,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/cvs/diff/dir.c')
-rw-r--r--contrib/cvs/diff/dir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/cvs/diff/dir.c b/contrib/cvs/diff/dir.c
index fae74e8..da497dc 100644
--- a/contrib/cvs/diff/dir.c
+++ b/contrib/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
}
OpenPOWER on IntegriCloud