Switch to unified view

a/src/utils/wipedir.cpp b/src/utils/wipedir.cpp
...
...
17
 */
17
 */
18
18
19
#ifndef TEST_WIPEDIR
19
#ifndef TEST_WIPEDIR
20
#include "autoconfig.h"
20
#include "autoconfig.h"
21
21
22
#include <errno.h>
23
#include "safefcntl.h"
24
#include <sys/types.h>
25
#include "safesysstat.h"
22
#include <unistd.h>
26
#include "safeunistd.h"
23
#include <fcntl.h>
24
#include <dirent.h>
27
#include <dirent.h>
25
#include <sys/stat.h>
26
#include <errno.h>
27
28
28
#include <cstring>
29
#include <cstring>
29
#include <string>
30
#include <string>
30
#ifndef NO_NAMESPACES
31
using namespace std;
32
#endif /* NO_NAMESPACES */
33
31
34
#include "debuglog.h"
32
#include "debuglog.h"
35
#include "pathut.h"
33
#include "pathut.h"
36
#include "wipedir.h"
34
#include "wipedir.h"
35
36
using namespace std;
37
37
38
int wipedir(const string& dir, bool selfalso, bool recurse)
38
int wipedir(const string& dir, bool selfalso, bool recurse)
39
{
39
{
40
    struct stat st;
40
    struct stat st;
41
    int statret;
41
    int statret;
...
...
112
112
113
#else // FILEUT_TEST
113
#else // FILEUT_TEST
114
114
115
#include <stdio.h>
115
#include <stdio.h>
116
#include <stdlib.h>
116
#include <stdlib.h>
117
#include <sys/stat.h>
118
117
119
#include "wipedir.h"
118
#include "wipedir.h"
120
119
121
using namespace std;
120
using namespace std;
122
static const char *thisprog;
121
static const char *thisprog;