diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-06-28 11:15:05 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-06-28 11:35:05 +0200 |
commit | 4ec851414248bb2031d805b40c40fdbbef899112 (patch) | |
tree | 3d19ac5c5bc39bab2fe269b6056e6ff46ca4f7f3 /src/core | |
parent | cae90de3d3e251692a72f3e8261c833e9ed2eaf7 (diff) | |
download | systemd-4ec851414248bb2031d805b40c40fdbbef899112.tar.gz systemd-4ec851414248bb2031d805b40c40fdbbef899112.tar.bz2 systemd-4ec851414248bb2031d805b40c40fdbbef899112.zip |
Rename EXTRACT_QUOTES to EXTRACT_UNQUOTE
Whenever I see EXTRACT_QUOTES, I'm always confused whether it means to
leave the quotes in or to take them out. Let's say "unquote", like we
say "cunescape".
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/device.c | 4 | ||||
-rw-r--r-- | src/core/load-fragment.c | 46 |
2 files changed, 25 insertions, 25 deletions
diff --git a/src/core/device.c b/src/core/device.c index f478393f1a..e2abca469a 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -374,7 +374,7 @@ static int device_add_udev_wants(Unit *u, sd_device *dev) { for (;;) { _cleanup_free_ char *word = NULL, *k = NULL; - r = extract_first_word(&wants, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&wants, &word, NULL, EXTRACT_UNQUOTE); if (r == 0) break; if (r == -ENOMEM) @@ -626,7 +626,7 @@ static int device_process_new(Manager *m, sd_device *dev) { for (;;) { _cleanup_free_ char *word = NULL; - r = extract_first_word(&alias, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&alias, &word, NULL, EXTRACT_UNQUOTE); if (r == 0) break; if (r == -ENOMEM) diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 7aed83101b..3288b0b838 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -334,7 +334,7 @@ int config_parse_unit_path_strv_printf( for (p = rvalue;;) { _cleanup_free_ char *word = NULL, *k = NULL; - r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_UNQUOTE); if (r == 0) return 0; if (r == -ENOMEM) @@ -638,7 +638,7 @@ int config_parse_exec( semicolon = false; - r = extract_first_word_and_warn(&p, &firstword, NULL, EXTRACT_QUOTES|EXTRACT_CUNESCAPE, unit, filename, line, rvalue); + r = extract_first_word_and_warn(&p, &firstword, NULL, EXTRACT_UNQUOTE|EXTRACT_CUNESCAPE, unit, filename, line, rvalue); if (r <= 0) return 0; @@ -784,7 +784,7 @@ int config_parse_exec( continue; } - r = extract_first_word_and_warn(&p, &word, NULL, EXTRACT_QUOTES|EXTRACT_CUNESCAPE, unit, filename, line, rvalue); + r = extract_first_word_and_warn(&p, &word, NULL, EXTRACT_UNQUOTE|EXTRACT_CUNESCAPE, unit, filename, line, rvalue); if (r == 0) break; if (r < 0) @@ -2244,7 +2244,7 @@ int config_parse_environ( for (p = rvalue;; ) { _cleanup_free_ char *word = NULL, *k = NULL; - r = extract_first_word(&p, &word, NULL, EXTRACT_CUNESCAPE|EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_CUNESCAPE|EXTRACT_UNQUOTE); if (r == 0) return 0; if (r == -ENOMEM) @@ -2312,7 +2312,7 @@ int config_parse_pass_environ( for (;;) { _cleanup_free_ char *word = NULL, *k = NULL; - r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_UNQUOTE); if (r == 0) break; if (r == -ENOMEM) @@ -2388,7 +2388,7 @@ int config_parse_unset_environ( for (;;) { _cleanup_free_ char *word = NULL, *k = NULL; - r = extract_first_word(&p, &word, NULL, EXTRACT_CUNESCAPE|EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_CUNESCAPE|EXTRACT_UNQUOTE); if (r == 0) break; if (r == -ENOMEM) @@ -2463,7 +2463,7 @@ int config_parse_log_extra_fields( struct iovec *t; const char *eq; - r = extract_first_word(&p, &word, NULL, EXTRACT_CUNESCAPE|EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_CUNESCAPE|EXTRACT_UNQUOTE); if (r == 0) return 0; if (r == -ENOMEM) @@ -2688,7 +2688,7 @@ int config_parse_unit_requires_mounts_for( for (;;) { _cleanup_free_ char *word = NULL, *resolved = NULL; - r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_UNQUOTE); if (r == 0) return 0; if (r == -ENOMEM) @@ -2883,7 +2883,7 @@ int config_parse_syscall_archs( _cleanup_free_ char *word = NULL; uint32_t a; - r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_UNQUOTE); if (r == 0) return 0; if (r == -ENOMEM) @@ -2987,7 +2987,7 @@ int config_parse_address_families( _cleanup_free_ char *word = NULL; int af; - r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_UNQUOTE); if (r == 0) return 0; if (r == -ENOMEM) @@ -3306,7 +3306,7 @@ int config_parse_delegate( _cleanup_free_ char *word = NULL; CGroupController cc; - r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_UNQUOTE); if (r == 0) break; if (r == -ENOMEM) @@ -3363,7 +3363,7 @@ int config_parse_device_allow( return 0; } - r = extract_first_word(&p, &path, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &path, NULL, EXTRACT_UNQUOTE); if (r == -ENOMEM) return log_oom(); if (r < 0) { @@ -3434,7 +3434,7 @@ int config_parse_io_device_weight( return 0; } - r = extract_first_word(&p, &path, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &path, NULL, EXTRACT_UNQUOTE); if (r == -ENOMEM) return log_oom(); if (r < 0) { @@ -3508,7 +3508,7 @@ int config_parse_io_device_latency( return 0; } - r = extract_first_word(&p, &path, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &path, NULL, EXTRACT_UNQUOTE); if (r == -ENOMEM) return log_oom(); if (r < 0) { @@ -3582,7 +3582,7 @@ int config_parse_io_limit( return 0; } - r = extract_first_word(&p, &path, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &path, NULL, EXTRACT_UNQUOTE); if (r == -ENOMEM) return log_oom(); if (r < 0) { @@ -3673,7 +3673,7 @@ int config_parse_blockio_device_weight( return 0; } - r = extract_first_word(&p, &path, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &path, NULL, EXTRACT_UNQUOTE); if (r == -ENOMEM) return log_oom(); if (r < 0) { @@ -3751,7 +3751,7 @@ int config_parse_blockio_bandwidth( return 0; } - r = extract_first_word(&p, &path, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &path, NULL, EXTRACT_UNQUOTE); if (r == -ENOMEM) return log_oom(); if (r < 0) { @@ -3871,7 +3871,7 @@ int config_parse_exec_directories( for (p = rvalue;;) { _cleanup_free_ char *word = NULL, *k = NULL; - r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_UNQUOTE); if (r == -ENOMEM) return log_oom(); if (r < 0) { @@ -4007,7 +4007,7 @@ int config_parse_namespace_path_strv( const char *w; bool ignore_enoent = false, shall_prefix = false; - r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_UNQUOTE); if (r == 0) break; if (r == -ENOMEM) @@ -4085,7 +4085,7 @@ int config_parse_temporary_filesystems( _cleanup_free_ char *word = NULL, *path = NULL, *resolved = NULL; const char *w; - r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &word, NULL, EXTRACT_UNQUOTE); if (r == 0) return 0; if (r == -ENOMEM) @@ -4161,7 +4161,7 @@ int config_parse_bind_paths( char *s = NULL, *d = NULL; bool rbind = true, ignore_enoent = false; - r = extract_first_word(&p, &source, ":" WHITESPACE, EXTRACT_QUOTES|EXTRACT_DONT_COALESCE_SEPARATORS); + r = extract_first_word(&p, &source, ":" WHITESPACE, EXTRACT_UNQUOTE|EXTRACT_DONT_COALESCE_SEPARATORS); if (r == 0) break; if (r == -ENOMEM) @@ -4190,7 +4190,7 @@ int config_parse_bind_paths( /* Optionally, the destination is specified. */ if (p && p[-1] == ':') { - r = extract_first_word(&p, &destination, ":" WHITESPACE, EXTRACT_QUOTES|EXTRACT_DONT_COALESCE_SEPARATORS); + r = extract_first_word(&p, &destination, ":" WHITESPACE, EXTRACT_UNQUOTE|EXTRACT_DONT_COALESCE_SEPARATORS); if (r == -ENOMEM) return log_oom(); if (r < 0) { @@ -4219,7 +4219,7 @@ int config_parse_bind_paths( if (p && p[-1] == ':') { _cleanup_free_ char *options = NULL; - r = extract_first_word(&p, &options, NULL, EXTRACT_QUOTES); + r = extract_first_word(&p, &options, NULL, EXTRACT_UNQUOTE); if (r == -ENOMEM) return log_oom(); if (r < 0) { |