summaryrefslogtreecommitdiff
path: root/src/busctl
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-04-04 11:46:44 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-04-12 11:44:57 +0200
commit2fe21124a6560fcf1ce3b0a3004baa9bb45d1e0b (patch)
tree35448e5d3a8042bb36bada1fedee63ae24ea7b97 /src/busctl
parentb636d78aeeea584b7828df18cb636693af365e2f (diff)
downloadsystemd-2fe21124a6560fcf1ce3b0a3004baa9bb45d1e0b.tar.gz
systemd-2fe21124a6560fcf1ce3b0a3004baa9bb45d1e0b.tar.bz2
systemd-2fe21124a6560fcf1ce3b0a3004baa9bb45d1e0b.zip
Add open_memstream_unlocked() wrapper
Diffstat (limited to 'src/busctl')
-rw-r--r--src/busctl/busctl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/busctl/busctl.c b/src/busctl/busctl.c
index c8125c6606..02f12dc701 100644
--- a/src/busctl/busctl.c
+++ b/src/busctl/busctl.c
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#include <getopt.h>
-#include <stdio_ext.h>
#include "sd-bus.h"
@@ -997,12 +996,10 @@ static int introspect(int argc, char **argv, void *userdata) {
if (r < 0)
return bus_log_parse_error(r);
- mf = open_memstream(&buf, &sz);
+ mf = open_memstream_unlocked(&buf, &sz);
if (!mf)
return log_oom();
- (void) __fsetlocking(mf, FSETLOCKING_BYCALLER);
-
r = format_cmdline(reply, mf, false);
if (r < 0)
return bus_log_parse_error(r);