summaryrefslogtreecommitdiff
path: root/src/analyze/analyze.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-30 16:13:21 +0100
committerLennart Poettering <lennart@poettering.net>2013-10-30 16:13:43 +0100
commit5220a6f3a1f5a7324898ecfe7649af254cf561a6 (patch)
tree6fc5a0e3652feef9a9c0fd8690c8033802a10a58 /src/analyze/analyze.c
parent36f9f99556b2fd90705a9eda2e8f182b1e63a15e (diff)
general: various cleanups
Diffstat (limited to 'src/analyze/analyze.c')
-rw-r--r--src/analyze/analyze.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index 967258d447..35778ea897 100644
--- a/src/analyze/analyze.c
+++ b/src/analyze/analyze.c
@@ -1295,8 +1295,8 @@ static int parse_argv(int argc, char *argv[]) {
}
int main(int argc, char *argv[]) {
- int r;
_cleanup_bus_unref_ sd_bus *bus = NULL;
+ int r;
setlocale(LC_ALL, "");
setlocale(LC_NUMERIC, "C"); /* we want to format/parse floats in C style */
@@ -1308,9 +1308,9 @@ int main(int argc, char *argv[]) {
goto finish;
if (arg_scope == UNIT_FILE_SYSTEM)
- r = sd_bus_open_system(&bus);
+ r = sd_bus_open_system(&bus);
else
- r = sd_bus_open_user(&bus);
+ r = sd_bus_open_user(&bus);
if (r < 0) {
log_error("Failed to connect to bus: %s", strerror(-r));