diff options
author | Colin Walters <walters@verbum.org> | 2023-05-03 08:24:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 08:24:21 -0400 |
commit | 8a2993a9d01cc358e4c2d936ca132174aabdc714 (patch) | |
tree | 5402001ab710dadfd51ba3e9071b044016030e3e /src/libostree/ostree-linuxfsutil.c | |
parent | dd70c9b78cc34ccc7e638eda4c2df1ddd8ee3add (diff) | |
parent | c1044a02b28982ef6dd58af98b23a40482d26487 (diff) | |
download | ostree-8a2993a9d01cc358e4c2d936ca132174aabdc714.tar.gz |
Merge pull request #2565 from cgwalters/clang-format
Add .clang-format file + tree-wide: Run `clang-format`
Diffstat (limited to 'src/libostree/ostree-linuxfsutil.c')
-rw-r--r-- | src/libostree/ostree-linuxfsutil.c | 10 |
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; |