chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cgroup: optionally mount a specific cgroup controllers together, and add cpu+cpuacct...
[elogind.git]
/
src
/
strv.c
diff --git
a/src/strv.c
b/src/strv.c
index f15aa8736a0339a241245f01c71845f93d24d7a5..a52440d832cc84b542fffe6398e4b6dbdc0588db 100644
(file)
--- a/
src/strv.c
+++ b/
src/strv.c
@@
-105,7
+105,6
@@
char **strv_new_ap(const char *x, va_list ap) {
unsigned n = 0, i = 0;
va_list aq;
-
if (x) {
n = 1;
@@
-661,3
+660,16
@@
char **strv_parse_nulstr(const char *s, size_t l) {
return v;
}
+
+bool strv_overlap(char **a, char **b) {
+ char **i, **j;
+
+ STRV_FOREACH(i, a) {
+ STRV_FOREACH(j, b) {
+ if (streq(*i, *j))
+ return true;
+ }
+ }
+
+ return false;
+}