diff options
author | peter <peter@FreeBSD.org> | 2001-08-10 09:43:22 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-08-10 09:43:22 +0000 |
commit | a037ef8f32200b26968e77344bcfb963251fa8b9 (patch) | |
tree | 2b4dc24b830b514680009ead3884ecb1c40974c7 /contrib/cvs/diff/dir.c | |
parent | 590c411955d6975551ffeaf41d7faf4b26f836d1 (diff) | |
download | FreeBSD-src-a037ef8f32200b26968e77344bcfb963251fa8b9.zip FreeBSD-src-a037ef8f32200b26968e77344bcfb963251fa8b9.tar.gz |
Import cvs-1.11.1p1 onto vendor branch
Diffstat (limited to 'contrib/cvs/diff/dir.c')
-rw-r--r-- | contrib/cvs/diff/dir.c | 10 |
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 } |