Skip to content

Commit

Permalink
Testing if clang-format CI is working
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatos committed Apr 17, 2024
1 parent 07e58f8 commit 1af826f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/Common/FileFormatCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ bool IsSquashFS(const fextl::string& Filename) {
uint32_t magic;
uint32_t inode_count;
uint32_t mtime;
uint32_t block_size;
uint32_t fragment_entry_count;
uint32_t block_size;
uint32_t fragment_entry_count;
uint16_t compression_id;
uint16_t block_log;
uint16_t flags;
Expand All @@ -26,9 +26,8 @@ bool IsSquashFS(const fextl::string& Filename) {

SquashFSHeader Header {};
int fd = open(Filename.c_str(), O_RDONLY | O_CLOEXEC);
if (fd == -1) {
if (fd == -1)
return false;
}

if (pread(fd, reinterpret_cast<char*>(&Header), sizeof(SquashFSHeader), 0) != sizeof(SquashFSHeader)) {
close(fd);
Expand Down

0 comments on commit 1af826f

Please sign in to comment.