Use struct dirent directly. See parent commit.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
#define strzero(s) memzero(s, strlen(s)) /* warning: evaluates twice */
#include <dirent.h>
-#define DIRECT dirent
/*
* Possible cases:
char *new_name;
size_t new_name_len;
int rc = 0;
- struct DIRECT *ent;
+ struct dirent *ent;
struct stat sb;
DIR *dir;
{
int err = 0;
bool set_orig = false;
- struct DIRECT *ent;
+ struct dirent *ent;
DIR *dir;
if (copy_root) {
{
char *new_name = NULL;
int err = 0;
- struct DIRECT *ent;
+ struct dirent *ent;
struct stat sb;
DIR *dir;