install: don't mix state and type enums
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sun, 15 Nov 2015 13:43:46 +0000 (14:43 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sun, 15 Nov 2015 13:45:24 +0000 (14:45 +0100)
from 0ec0deaa

src/shared/install.c

index 9b6464b..17e03e5 100644 (file)
@@ -942,7 +942,7 @@ static int unit_file_load(
         if (fstat(fd, &st) < 0)
                 return -errno;
         if (null_or_empty(&st)) {
-                info->type = UNIT_FILE_MASKED;
+                info->type = UNIT_FILE_TYPE_MASKED;
                 return 0;
         }
         if (S_ISDIR(st.st_mode))