summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-11-25 18:59:06 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-01 00:25:51 +0100
commit4da92e58570a8a864eb031ae372fc4a611e7faf1 (patch)
tree0b90e27e556e26466a9528e5c8ece972ef755854 /src/nspawn
parent5639193139792b48665b9c5d7d7ca165af124be6 (diff)
nspawn: coding style: don't mix variable declarations and function calls
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn-mount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nspawn/nspawn-mount.c b/src/nspawn/nspawn-mount.c
index 9d76f4a381..cbc5b93c2a 100644
--- a/src/nspawn/nspawn-mount.c
+++ b/src/nspawn/nspawn-mount.c
@@ -464,12 +464,14 @@ static int parse_mount_bind_options(const char *options, unsigned long *mount_fl
const char *p = options;
unsigned long flags = *mount_flags;
char *opts = NULL;
+ int r;
assert(options);
for (;;) {
_cleanup_free_ char *word = NULL;
- int r = extract_first_word(&p, &word, ",", 0);
+
+ r = extract_first_word(&p, &word, ",", 0);
if (r < 0)
return log_error_errno(r, "Failed to extract mount option: %m");
if (r == 0)