diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e8067b4..8edb577 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v4 - name: coding convention run: | - sudo apt-get install -q -y clang-format-12 + sudo apt-get install -q -y clang-format .ci/check-newline.sh .ci/check-format.sh shell: bash diff --git a/mkfs.c b/mkfs.c index 01a6e0b..59dd967 100644 --- a/mkfs.c +++ b/mkfs.c @@ -26,7 +26,7 @@ _Static_assert(sizeof(struct superblock) == SIMPLEFS_BLOCK_SIZE); * * Return the result of n / d, rounded up to the nearest integer. */ -#define DIV_ROUND_UP(n, d) (((n) + (d) -1) / (d)) +#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) static struct superblock *write_superblock(int fd, struct stat *fstats) {