summaryrefslogtreecommitdiff
path: root/src/analyze/analyze.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-06 16:38:21 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-06 16:38:53 +0100
commitd3eba116d14b8775eed02e433f7ec5f62cde4957 (patch)
treefa4be48fd3fb270e20f115a13469dacbbe926720 /src/analyze/analyze.c
parent07d0eaa0171d6e30b85a4b84b3287509406f9451 (diff)
analyze: simplify things
Diffstat (limited to 'src/analyze/analyze.c')
-rw-r--r--src/analyze/analyze.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index b596cadf2f..9becc72309 100644
--- a/src/analyze/analyze.c
+++ b/src/analyze/analyze.c
@@ -1123,7 +1123,6 @@ static int dump(sd_bus *bus, char **args) {
static int set_log_level(sd_bus *bus, char **args) {
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
int r;
- const char* value;
assert(bus);
assert(args);
@@ -1133,8 +1132,6 @@ static int set_log_level(sd_bus *bus, char **args) {
return -E2BIG;
}
- value = args[0];
-
r = sd_bus_set_property(
bus,
"org.freedesktop.systemd1",
@@ -1143,7 +1140,7 @@ static int set_log_level(sd_bus *bus, char **args) {
"LogLevel",
&error,
"s",
- value);
+ args[0]);
if (r < 0) {
log_error("Failed to issue method call: %s", bus_error_message(&error, -r));
return -EIO;