[ostree-init] Minor code style cleanup
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree-init] Minor code style cleanup
- Date: Fri, 3 Feb 2012 22:30:39 +0000 (UTC)
commit 8a6d28164a4d45ca7aa966eb660155765f5cfa8f
Author: Colin Walters <walters verbum org>
Date: Fri Feb 3 17:29:36 2012 -0500
Minor code style cleanup
src/ostree-init.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/ostree-init.c b/src/ostree-init.c
index a3317bb..175e1aa 100644
--- a/src/ostree-init.c
+++ b/src/ostree-init.c
@@ -162,9 +162,12 @@ is_mounted (const char *path)
{
const char *line;
int ret = 0;
- size_t pathlen = strlen (path);
+ size_t pathlen;
size_t buflen;
- char *buf = get_file_contents ("/proc/mounts", &buflen);
+ char *buf;
+
+ pathlen = strlen (path);
+ buf = get_file_contents ("/proc/mounts", &buflen);
line = buf;
do
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]