]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
ENOENT fix
[wimlib] / programs / imagex.c
index fe7f3be9866de20ee66888a4c6ab3e89f59bad0f..5c5d42bc0733e444f8095059afca97c5a257bebb 100644 (file)
 #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); \
@@ -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