summaryrefslogtreecommitdiff
path: root/src/test/test-strv.c
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/test/test-strv.c
parentcae90de3d3e251692a72f3e8261c833e9ed2eaf7 (diff)
downloadsystemd-4ec851414248bb2031d805b40c40fdbbef899112.tar.gz
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/test/test-strv.c')
-rw-r--r--src/test/test-strv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-strv.c b/src/test/test-strv.c
index 18ad03669c..488025f23a 100644
--- a/src/test/test-strv.c
+++ b/src/test/test-strv.c
@@ -204,7 +204,7 @@ static void test_strv_unquote(const char *quoted, char **list) {
char **t;
int r;
- r = strv_split_extract(&s, quoted, WHITESPACE, EXTRACT_QUOTES);
+ r = strv_split_extract(&s, quoted, WHITESPACE, EXTRACT_UNQUOTE);
assert_se(r == (int) strv_length(list));
assert_se(s);
j = strv_join(s, " | ");
@@ -221,7 +221,7 @@ static void test_invalid_unquote(const char *quoted) {
char **s = NULL;
int r;
- r = strv_split_extract(&s, quoted, WHITESPACE, EXTRACT_QUOTES);
+ r = strv_split_extract(&s, quoted, WHITESPACE, EXTRACT_UNQUOTE);
assert_se(s == NULL);
assert_se(r == -EINVAL);
}