1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00

nspawn: coding style: don't mix variable declarations and function calls

This commit is contained in:
Lennart Poettering 2016-11-25 18:59:06 +01:00
parent 5639193139
commit 4da92e5857

View File

@ -464,12 +464,14 @@ static int parse_mount_bind_options(const char *options, unsigned long *mount_fl
const char *p = options; const char *p = options;
unsigned long flags = *mount_flags; unsigned long flags = *mount_flags;
char *opts = NULL; char *opts = NULL;
int r;
assert(options); assert(options);
for (;;) { for (;;) {
_cleanup_free_ char *word = NULL; _cleanup_free_ char *word = NULL;
int r = extract_first_word(&p, &word, ",", 0);
r = extract_first_word(&p, &word, ",", 0);
if (r < 0) if (r < 0)
return log_error_errno(r, "Failed to extract mount option: %m"); return log_error_errno(r, "Failed to extract mount option: %m");
if (r == 0) if (r == 0)