#include <errno.h>
#include <sys/stat.h>
-#ifdef WITH_NTFS_3G
-#include <unistd.h>
-#include <sys/wait.h>
-#endif
-
#define ARRAY_LEN(array) (sizeof(array) / sizeof(array[0]))
#define swap(a, b) ({ typeof(a) __a = (a); typeof(b) __b = (b); \
goto out_write;
}
} else {
- if (errno != -ENOENT)
+ if (errno != ENOENT)
imagex_error_with_errno("Failed to stat `%s'", dir);
}
#endif
goto out;
}
} else {
- if (errno != -ENOENT)
+ if (errno != ENOENT)
imagex_error_with_errno("Failed to stat `%s'", dir);
}
#endif
goto out_write;
}
} else {
- if (errno != -ENOENT)
+ if (errno != ENOENT)
imagex_error_with_errno("Failed to stat `%s'", dir);
}
#endif