summaryrefslogtreecommitdiffstats
path: root/src/locale
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-06-28 11:15:05 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-06-28 11:35:05 +0200
commit4ec851414248bb2031d805b40c40fdbbef899112 (patch)
tree3d19ac5c5bc39bab2fe269b6056e6ff46ca4f7f3 /src/locale
parentReindent some things for readability (diff)
downloadsystemd-4ec851414248bb2031d805b40c40fdbbef899112.tar.xz
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/locale')
-rw-r--r--src/locale/keymap-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c
index c7dcd8ad38..1394514839 100644
--- a/src/locale/keymap-util.c
+++ b/src/locale/keymap-util.c
@@ -252,7 +252,7 @@ int x11_read_data(Context *c, sd_bus_message *m) {
if (in_section && first_word(l, "Option")) {
_cleanup_strv_free_ char **a = NULL;
- r = strv_split_extract(&a, l, WHITESPACE, EXTRACT_QUOTES);
+ r = strv_split_extract(&a, l, WHITESPACE, EXTRACT_UNQUOTE);
if (r < 0)
return r;
@@ -276,7 +276,7 @@ int x11_read_data(Context *c, sd_bus_message *m) {
} else if (!in_section && first_word(l, "Section")) {
_cleanup_strv_free_ char **a = NULL;
- r = strv_split_extract(&a, l, WHITESPACE, EXTRACT_QUOTES);
+ r = strv_split_extract(&a, l, WHITESPACE, EXTRACT_UNQUOTE);
if (r < 0)
return -ENOMEM;
@@ -491,7 +491,7 @@ static int read_next_mapping(const char* filename,
if (IN_SET(l[0], 0, '#'))
continue;
- r = strv_split_extract(&b, l, WHITESPACE, EXTRACT_QUOTES);
+ r = strv_split_extract(&b, l, WHITESPACE, EXTRACT_UNQUOTE);
if (r < 0)
return r;