summaryrefslogtreecommitdiff
path: root/src/shared/strv.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-17 02:50:09 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-17 21:25:42 +0200
commit6d0274f11547a0f11200bb82bf598a5a253e12cf (patch)
treecdca61ea9c8a3c120e53c212dab318ffa141c129 /src/shared/strv.c
parent22349cee29b31cde7ef8582b4882475f553af97a (diff)
timedatectl: introduce new command line client for timedated
Much like logind has a client in loginctl, and journald in journalctl introduce timedatectl, to change the system time (incl. RTC), timezones and related settings.
Diffstat (limited to 'src/shared/strv.c')
-rw-r--r--src/shared/strv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/strv.c b/src/shared/strv.c
index c8d856344c..822b2dc888 100644
--- a/src/shared/strv.c
+++ b/src/shared/strv.c
@@ -64,6 +64,14 @@ void strv_free(char **l) {
free(l);
}
+void strv_freep(char ***l) {
+ if (!l)
+ return;
+
+ strv_free(*l);
+ *l = NULL;
+}
+
char **strv_copy(char **l) {
char **r, **k;