diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-06 21:14:26 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-07 02:40:24 +0100 |
commit | 6db615c17ee7a434f9e0c40d67a1f833d8f3cc9d (patch) | |
tree | 02648e07251e322648fb98fc92afb791bb25a797 /src/core/mount.c | |
parent | man: systemd-bootchart - fix spacing in command (diff) | |
download | systemd-6db615c17ee7a434f9e0c40d67a1f833d8f3cc9d.tar.xz systemd-6db615c17ee7a434f9e0c40d67a1f833d8f3cc9d.zip |
fstab-generator: merge /proc/cmdline parsing loops into one
Diffstat (limited to 'src/core/mount.c')
-rw-r--r-- | src/core/mount.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 60067d4d75..b4b6080ea8 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -62,20 +62,6 @@ static const UnitActiveState state_translation_table[_MOUNT_STATE_MAX] = { static int mount_dispatch_timer(sd_event_source *source, usec_t usec, void *userdata); static int mount_dispatch_io(sd_event_source *source, int fd, uint32_t revents, void *userdata); -static char* mount_test_option(const char *haystack, const char *needle) { - struct mntent me = { .mnt_opts = (char*) haystack }; - - assert(needle); - - /* Like glibc's hasmntopt(), but works on a string, not a - * struct mntent */ - - if (!haystack) - return NULL; - - return hasmntopt(&me, needle); -} - static bool mount_is_network(MountParameters *p) { assert(p); |