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 */
|
#define strzero(s) memzero(s, strlen(s)) /* warning: evaluates twice */
|
||||||
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#define DIRECT dirent
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Possible cases:
|
* Possible cases:
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user