mirror of
https://github.com/systemd/systemd.git
synced 2024-11-28 04:33:36 +08:00
mount: drop unused function
This commit is contained in:
parent
d360705f0f
commit
399c5f9633
@ -1451,27 +1451,6 @@ fail:
|
|||||||
return r;
|
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) {
|
static int mount_load_proc_self_mountinfo(Manager *m, bool set_flags) {
|
||||||
int r = 0;
|
int r = 0;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
@ -27,6 +27,11 @@
|
|||||||
#include "unit-name.h"
|
#include "unit-name.h"
|
||||||
#include "path-util.h"
|
#include "path-util.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Implements the logic described in
|
||||||
|
* http://freedesktop.org/wiki/Software/systemd/SystemUpdates
|
||||||
|
*/
|
||||||
|
|
||||||
static const char *arg_dest = "/tmp";
|
static const char *arg_dest = "/tmp";
|
||||||
|
|
||||||
static int generate_symlink(void) {
|
static int generate_symlink(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user