X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=programs%2Fimagex.c;h=5c5d42bc0733e444f8095059afca97c5a257bebb;hp=fe7f3be9866de20ee66888a4c6ab3e89f59bad0f;hb=3b293f2984ccd95cf58363ae448deda14224d310;hpb=1dde5fb0d809f2f5e032e4d5241d1cb15ff3eb65 diff --git a/programs/imagex.c b/programs/imagex.c index fe7f3be9..5c5d42bc 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -31,11 +31,6 @@ #include #include -#ifdef WITH_NTFS_3G -#include -#include -#endif - #define ARRAY_LEN(array) (sizeof(array) / sizeof(array[0])) #define swap(a, b) ({ typeof(a) __a = (a); typeof(b) __b = (b); \ @@ -418,7 +413,7 @@ static int imagex_append(int argc, const char **argv) goto out_write; } } else { - if (errno != -ENOENT) + if (errno != ENOENT) imagex_error_with_errno("Failed to stat `%s'", dir); } #endif @@ -527,7 +522,7 @@ static int imagex_apply(int argc, const char **argv) goto out; } } else { - if (errno != -ENOENT) + if (errno != ENOENT) imagex_error_with_errno("Failed to stat `%s'", dir); } #endif @@ -628,7 +623,7 @@ static int imagex_capture(int argc, const char **argv) goto out_write; } } else { - if (errno != -ENOENT) + if (errno != ENOENT) imagex_error_with_errno("Failed to stat `%s'", dir); } #endif