summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-linuxfsutil.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2023-05-01 14:24:29 -0400
committerColin Walters <walters@verbum.org>2023-05-02 08:42:19 -0400
commit453aed97f688c606622562145fa1f7c10096ba14 (patch)
tree8059e3887665735f14b31a44402d5d578fcdd876 /src/libostree/ostree-linuxfsutil.c
parenta917813bb82b6ec7083da24064439b656971748d (diff)
downloadostree-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/libostree/ostree-linuxfsutil.c')
-rw-r--r--src/libostree/ostree-linuxfsutil.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libostree/ostree-linuxfsutil.c b/src/libostree/ostree-linuxfsutil.c
index aa389aaa..bebd5248 100644
--- a/src/libostree/ostree-linuxfsutil.c
+++ b/src/libostree/ostree-linuxfsutil.c
@@ -27,8 +27,8 @@
// This should be the only file including linux/fs.h; see
// https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E
// https://github.com/ostreedev/ostree/issues/2685
-#include <linux/fs.h>
#include <ext2fs/ext2_fs.h>
+#include <linux/fs.h>
/**
* _ostree_linuxfs_fd_alter_immutable_flag:
@@ -45,10 +45,8 @@
* silently do nothing.
*/
gboolean
-_ostree_linuxfs_fd_alter_immutable_flag (int fd,
- gboolean new_immutable_state,
- GCancellable *cancellable,
- GError **error)
+_ostree_linuxfs_fd_alter_immutable_flag (int fd, gboolean new_immutable_state,
+ GCancellable *cancellable, GError **error)
{
static gint no_alter_immutable = 0;
@@ -70,7 +68,7 @@ _ostree_linuxfs_fd_alter_immutable_flag (int fd,
{
gboolean prev_immutable_state = (flags & EXT2_IMMUTABLE_FL) > 0;
if (prev_immutable_state == new_immutable_state)
- return TRUE; /* Nothing to do */
+ return TRUE; /* Nothing to do */
if (new_immutable_state)
flags |= EXT2_IMMUTABLE_FL;