From: Lennart Poettering Date: Tue, 22 May 2012 17:50:10 +0000 (+0200) Subject: mount: drop unused function X-Git-Tag: v183~33 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=399c5f96331ad5281fdb75a7c0c66cc703f7eeb6;ds=sidebyside mount: drop unused function --- 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; diff --git a/src/system-update-generator/system-update-generator.c b/src/system-update-generator/system-update-generator.c index 0cfccfb49..30fdbc3ee 100644 --- a/src/system-update-generator/system-update-generator.c +++ b/src/system-update-generator/system-update-generator.c @@ -27,6 +27,11 @@ #include "unit-name.h" #include "path-util.h" +/* + * Implements the logic described in + * http://freedesktop.org/wiki/Software/systemd/SystemUpdates + */ + static const char *arg_dest = "/tmp"; static int generate_symlink(void) {