static bool arg_root_enabled = true;
static int arg_root_rw = -1;
-static int add_cryptsetup(const char *id, const char *what, bool rw, bool require, char **device) {
+static int add_cryptsetup(
+ const char *id,
+ const char *what,
+ bool rw,
+ bool require,
+ char **ret_device) {
+
#if HAVE_LIBCRYPTSETUP
_cleanup_free_ char *e = NULL, *n = NULL, *d = NULL;
_cleanup_fclose_ FILE *f = NULL;
if (r < 0)
log_warning_errno(r, "Failed to write device timeout drop-in, ignoring: %m");
- if (device) {
- char *ret;
+ if (ret_device) {
+ char *s;
- ret = path_join("/dev/mapper", id);
- if (!ret)
+ s = path_join("/dev/mapper", id);
+ if (!s)
return log_oom();
- *device = ret;
+ *ret_device = s;
}
return 0;