X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fmount-setup.c;h=4adb86f15731acd4a912fae0fe1793b1a4e12fba;hb=d83685ac1b1c33cf2132bca6374e65ed2de276a7;hp=7eb806e7fd8588d3d7fa23965716f130448e0576;hpb=600a328fc28c521ee19a0a1c22b14e6011275c20;p=elogind.git diff --git a/src/mount-setup.c b/src/mount-setup.c index 7eb806e7f..4adb86f15 100644 --- a/src/mount-setup.c +++ b/src/mount-setup.c @@ -55,7 +55,7 @@ static const MountPoint mount_table[] = { }; /* These are API file systems that might be mounted by other software, - * we just list them here so that we know that we should igore them */ + * we just list them here so that we know that we should ignore them */ static const char * const ignore_paths[] = { "/selinux", @@ -78,7 +78,7 @@ bool mount_point_is_api(const char *path) { } bool mount_point_ignore(const char *path) { - unsigned i; + unsigned i; for (i = 0; i < ELEMENTSOF(ignore_paths); i++) if (path_equal(path, ignore_paths[i])) @@ -140,7 +140,7 @@ static int mount_cgroup_controllers(void) { char *controller, *where; int enabled = false; - if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 1) { + if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 2) { if (feof(f)) break;