chiark / gitweb /
journald: use SCM_SECURITY to race-freely determine peer SELinux label
[elogind.git] / src / mount.c
index 0ae964b648a9e56973cdda007708301ff39f2bc4..982715a6dba86ddd2f34c6666ab53318de3f1c93 100644 (file)
@@ -271,7 +271,7 @@ static char* mount_test_option(const char *haystack, const char *needle) {
          * struct mntent */
 
         if (!haystack)
-                return false;
+                return NULL;
 
         zero(me);
         me.mnt_opts = (char*) haystack;
@@ -1578,7 +1578,7 @@ static int mount_load_etc_fstab(Manager *m) {
                 free(what);
                 free(where);
 
-                if (r < 0)
+                if (k < 0)
                         r = k;
         }