summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-04 20:01:07 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-12-04 22:29:51 +0100
commit4fd944ec822414b743bc39de37a4751c729463d3 (patch)
treed4dc5596c519290a5bcd1e5914c1bb3be72c8be0 /src/systemctl
parentf7d8595113c0e2ffe84c760a325dd9c988161d8d (diff)
systemctl: no need to fdopen stdout
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index f3db6bfdbf..d5d6b9f7d5 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -3690,7 +3690,6 @@ static int cat(sd_bus *bus, char **args) {
_cleanup_free_ char *fragment_path = NULL;
_cleanup_strv_free_ char **dropin_paths = NULL;
sd_bus_error error;
- FILE *stdout;
char **path;
n = unit_name_mangle(*name);
@@ -3731,8 +3730,6 @@ static int cat(sd_bus *bus, char **args) {
continue;
}
- stdout = fdopen(STDOUT_FILENO, "a");
-
if (!isempty(fragment_path)) {
fprintf(stdout, "# %s\n", fragment_path);
fflush(stdout);