diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-23 18:52:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-24 23:04:42 +0200 |
commit | 4f5dd3943bef8a04be7e3b838b822bb9a7ad6cb3 (patch) | |
tree | deda3509752ff079dded29c145e4a8fae41812f1 /src/udev | |
parent | dea7b6b043f0cd9e34ee719b9b612c3a4776387e (diff) |
util: split out escaping code into escape.[ch]
This really deserves its own file, given how much code this is now.
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udev-rules.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 10bf3880b0..62db0016eb 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -15,27 +15,28 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <stddef.h> -#include <limits.h> -#include <stdlib.h> -#include <stdbool.h> -#include <string.h> -#include <stdio.h> -#include <fcntl.h> #include <ctype.h> -#include <unistd.h> -#include <errno.h> #include <dirent.h> +#include <errno.h> +#include <fcntl.h> #include <fnmatch.h> +#include <limits.h> +#include <stdbool.h> +#include <stddef.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> #include <time.h> +#include <unistd.h> -#include "udev.h" -#include "path-util.h" #include "conf-files.h" +#include "escape.h" +#include "path-util.h" #include "strbuf.h" #include "strv.h" -#include "util.h" #include "sysctl-util.h" +#include "util.h" +#include "udev.h" #define PREALLOC_TOKEN 2048 @@ -51,7 +52,8 @@ static const char* const rules_dirs[] = { "/etc/udev/rules.d", "/run/udev/rules.d", UDEVLIBEXECDIR "/rules.d", - NULL}; + NULL +}; struct udev_rules { struct udev *udev; |