Remove old compatibility DIRECT macro.

Use struct dirent directly.  See parent commit.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-12-30 14:13:36 +01:00 committed by Serge Hallyn
parent 79e28694ef
commit 5450f9a904
4 changed files with 3 additions and 4 deletions

View File

@ -118,7 +118,6 @@ static inline void memzero(void *ptr, size_t size)
#define strzero(s) memzero(s, strlen(s)) /* warning: evaluates twice */ #define strzero(s) memzero(s, strlen(s)) /* warning: evaluates twice */
#include <dirent.h> #include <dirent.h>
#define DIRECT dirent
/* /*
* Possible cases: * Possible cases:

View File

@ -39,7 +39,7 @@ int chown_tree (const char *root,
char *new_name; char *new_name;
size_t new_name_len; size_t new_name_len;
int rc = 0; int rc = 0;
struct DIRECT *ent; struct dirent *ent;
struct stat sb; struct stat sb;
DIR *dir; DIR *dir;

View File

@ -213,7 +213,7 @@ int copy_tree (const char *src_root, const char *dst_root,
{ {
int err = 0; int err = 0;
bool set_orig = false; bool set_orig = false;
struct DIRECT *ent; struct dirent *ent;
DIR *dir; DIR *dir;
if (copy_root) { if (copy_root) {

View File

@ -33,7 +33,7 @@ int remove_tree (const char *root, bool remove_root)
{ {
char *new_name = NULL; char *new_name = NULL;
int err = 0; int err = 0;
struct DIRECT *ent; struct dirent *ent;
struct stat sb; struct stat sb;
DIR *dir; DIR *dir;