diff options
author | Gowtham Anandha Babu <gowtham.ab@samsung.com> | 2014-10-15 19:38:21 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-10-16 10:13:01 +0200 |
commit | aa649eeb5e30cf7a037a024a58df7a402c83b65c (patch) | |
tree | 744718fa8a369927bf9143c856703e324d8b1b63 /obexd/src | |
parent | 2892231c6cb014f5731d4d2d5d5650b137119e6d (diff) | |
download | bluez-aa649eeb5e30cf7a037a024a58df7a402c83b65c.tar.gz |
obexd: Fix coding style and improves readability
Diffstat (limited to 'obexd/src')
-rw-r--r-- | obexd/src/main.c | 6 |
1 files 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); } |