version 1.8, 2007/01/19 23:23:21 |
version 1.9, 2007/01/25 18:56:33 |
|
|
DIR *dirp; |
DIR *dirp; |
struct stat st; |
struct stat st; |
struct dirent *dp; |
struct dirent *dp; |
char *s, *fpath, *rpath; |
char *s, fpath[MAXPATHLEN], rpath[MAXPATHLEN]; |
|
|
rpath = xmalloc(MAXPATHLEN); |
|
fpath = xmalloc(MAXPATHLEN); |
|
|
|
if ((dirp = opendir(dir)) == NULL) |
if ((dirp = opendir(dir)) == NULL) |
fatal("cvs_repository_getdir: failed to open '%s'", dir); |
fatal("cvs_repository_getdir: failed to open '%s'", dir); |
|
|
|
|
fatal("type %d unknown, shouldn't happen", type); |
fatal("type %d unknown, shouldn't happen", type); |
} |
} |
} |
} |
|
|
xfree(rpath); |
|
xfree(fpath); |
|
|
|
(void)closedir(dirp); |
(void)closedir(dirp); |
} |
} |