chiark / gitweb /
Add new function to filter fstab options
[elogind.git] / src / shared / util.c
index 6520e511f03fe5685c58ec46f9021a853005dc47..280e42b3052ccdc0d28eef8c10c53f90024ba04b 100644 (file)
@@ -6744,23 +6744,6 @@ uint64_t physical_memory(void) {
         return (uint64_t) mem * (uint64_t) page_size();
 }
 
-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);
-}
-
 void hexdump(FILE *f, const void *p, size_t s) {
         const uint8_t *b = p;
         unsigned n = 0;