mirror of
https://github.com/shadow-maint/shadow.git
synced 2024-11-28 12:34:39 +08:00
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:
parent
79e28694ef
commit
5450f9a904
@ -118,7 +118,6 @@ static inline void memzero(void *ptr, size_t size)
|
||||
#define strzero(s) memzero(s, strlen(s)) /* warning: evaluates twice */
|
||||
|
||||
#include <dirent.h>
|
||||
#define DIRECT dirent
|
||||
|
||||
/*
|
||||
* Possible cases:
|
||||
|
@ -39,7 +39,7 @@ int chown_tree (const char *root,
|
||||
char *new_name;
|
||||
size_t new_name_len;
|
||||
int rc = 0;
|
||||
struct DIRECT *ent;
|
||||
struct dirent *ent;
|
||||
struct stat sb;
|
||||
DIR *dir;
|
||||
|
||||
|
@ -213,7 +213,7 @@ int copy_tree (const char *src_root, const char *dst_root,
|
||||
{
|
||||
int err = 0;
|
||||
bool set_orig = false;
|
||||
struct DIRECT *ent;
|
||||
struct dirent *ent;
|
||||
DIR *dir;
|
||||
|
||||
if (copy_root) {
|
||||
|
@ -33,7 +33,7 @@ int remove_tree (const char *root, bool remove_root)
|
||||
{
|
||||
char *new_name = NULL;
|
||||
int err = 0;
|
||||
struct DIRECT *ent;
|
||||
struct dirent *ent;
|
||||
struct stat sb;
|
||||
DIR *dir;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user