mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 14:51:32 +00:00
remove unused fddir variable
Thanks to dlezcano for spotting this. Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
3283db096f
commit
5eff9886a0
@ -423,7 +423,6 @@ out:
|
|||||||
int recursive_rmdir(char *dirname)
|
int recursive_rmdir(char *dirname)
|
||||||
{
|
{
|
||||||
struct dirent dirent, *direntp;
|
struct dirent dirent, *direntp;
|
||||||
int fddir;
|
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
int ret;
|
int ret;
|
||||||
char pathname[MAXPATHLEN];
|
char pathname[MAXPATHLEN];
|
||||||
@ -434,8 +433,6 @@ int recursive_rmdir(char *dirname)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
fddir = dirfd(dir);
|
|
||||||
|
|
||||||
while (!readdir_r(dir, &dirent, &direntp)) {
|
while (!readdir_r(dir, &dirent, &direntp)) {
|
||||||
struct stat mystat;
|
struct stat mystat;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user