summaryrefslogtreecommitdiffstats
path: root/man/sd-bus-container-append.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 03:50:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 03:50:42 +0000
commit78e9bb837c258ac0ec7712b3d612cc2f407e731e (patch)
treef515d16b6efd858a9aeb5b0ef5d6f90bf288283d /man/sd-bus-container-append.c
parentAdding debian version 255.5-1. (diff)
downloadsystemd-78e9bb837c258ac0ec7712b3d612cc2f407e731e.tar.xz
systemd-78e9bb837c258ac0ec7712b3d612cc2f407e731e.zip
Merging upstream version 256.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'man/sd-bus-container-append.c')
-rw-r--r--man/sd-bus-container-append.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/man/sd-bus-container-append.c b/man/sd-bus-container-append.c
index 8bb4f33..07a24f2 100644
--- a/man/sd-bus-container-append.c
+++ b/man/sd-bus-container-append.c
@@ -3,13 +3,14 @@
#include <systemd/sd-bus.h>
int append_strings_to_message(sd_bus_message *m, const char *const *arr) {
+ const char *s;
int r;
r = sd_bus_message_open_container(m, 'a', "s");
if (r < 0)
return r;
- for (const char *s = *arr; *s; s++) {
+ for (s = *arr; *s; s++) {
r = sd_bus_message_append(m, "s", s);
if (r < 0)
return r;