From aa649eeb5e30cf7a037a024a58df7a402c83b65c Mon Sep 17 00:00:00 2001 From: Gowtham Anandha Babu Date: Wed, 15 Oct 2014 19:38:21 +0530 Subject: [PATCH] obexd: Fix coding style and improves readability --- obexd/src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/obexd/src/main.c b/obexd/src/main.c index 80645f8df..0040c1e75 100644 --- a/obexd/src/main.c +++ b/obexd/src/main.c @@ -199,7 +199,8 @@ const char *obex_option_capability(void) return option_capability; } -static gboolean is_dir(const char *dir) { +static gboolean is_dir(const char *dir) +{ struct stat st; if (stat(dir, &st) < 0) { @@ -290,8 +291,9 @@ int main(int argc, char *argv[]) } if (option_root[0] != '/') { - char *old_root = option_root, *home = getenv("HOME"); + const char *home = getenv("HOME"); if (home) { + char *old_root = option_root; option_root = g_strdup_printf("%s/%s", home, old_root); g_free(old_root); } -- 2.47.3