diff options
author | Colin Walters <walters@verbum.org> | 2023-05-01 14:24:29 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2023-05-02 08:42:19 -0400 |
commit | 453aed97f688c606622562145fa1f7c10096ba14 (patch) | |
tree | 8059e3887665735f14b31a44402d5d578fcdd876 /src/switchroot/ostree-system-generator.c | |
parent | a917813bb82b6ec7083da24064439b656971748d (diff) | |
download | ostree-453aed97f688c606622562145fa1f7c10096ba14.tar.gz |
tree-wide: Run clang-format
This is a one-time tree wide reformatting to ensure consistency
going forward.
Diffstat (limited to 'src/switchroot/ostree-system-generator.c')
-rw-r--r-- | src/switchroot/ostree-system-generator.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/switchroot/ostree-system-generator.c b/src/switchroot/ostree-system-generator.c index bd0901bc..33e3d783 100644 --- a/src/switchroot/ostree-system-generator.c +++ b/src/switchroot/ostree-system-generator.c @@ -20,10 +20,10 @@ #include "config.h" #include <err.h> -#include <unistd.h> -#include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> +#include <sys/stat.h> +#include <unistd.h> #include <libglnx.h> @@ -37,10 +37,11 @@ static const char *arg_dest_late = "/tmp"; * lives inside libostree. */ int -main(int argc, char *argv[]) +main (int argc, char *argv[]) { /* We conflict with the magic ostree-mount-deployment-var file for ostree-prepare-root */ - { struct stat stbuf; + { + struct stat stbuf; if (fstatat (AT_FDCWD, INITRAMFS_MOUNT_VAR, &stbuf, 0) == 0) { if (unlinkat (AT_FDCWD, INITRAMFS_MOUNT_VAR, 0) < 0) @@ -74,8 +75,10 @@ main(int argc, char *argv[]) */ touch_run_ostree (); - { g_autoptr(GError) local_error = NULL; - if (!ostree_cmd__private__()->ostree_system_generator (ostree_cmdline, arg_dest, NULL, arg_dest_late, &local_error)) + { + g_autoptr (GError) local_error = NULL; + if (!ostree_cmd__private__ ()->ostree_system_generator (ostree_cmdline, arg_dest, NULL, + arg_dest_late, &local_error)) errx (EXIT_FAILURE, "%s", local_error->message); } |