X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmount.c;h=11ac692c6cfa48ab57a3a25e368abc4d822e8a79;hb=7c49259fc8f63ade6cb212a43477d7030aaaf423;hp=e8f8856414b615571acbd83fa4f5ad9e830181c2;hpb=6b1dc2bd3cdb3bd932b0692be636ddd2879edb92;p=elogind.git diff --git a/src/core/mount.c b/src/core/mount.c index e8f885641..11ac692c6 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1451,27 +1451,6 @@ fail: return r; } -static int mount_find_pri(char *options) { - char *end, *pri; - unsigned long r; - - if (!(pri = mount_test_option(options, "pri"))) - return 0; - - pri += 4; - - errno = 0; - r = strtoul(pri, &end, 10); - - if (errno != 0) - return -errno; - - if (end == pri || (*end != ',' && *end != 0)) - return -EINVAL; - - return (int) r; -} - static int mount_load_proc_self_mountinfo(Manager *m, bool set_flags) { int r = 0; unsigned i;