From 909b61c9730bc25abaf17c353949984afdcd8126 Mon Sep 17 00:00:00 2001 From: RoyHuang Date: Sat, 29 Mar 2025 10:51:12 +0800 Subject: [PATCH] Fix workflow lib dep. --- .github/workflows/main.yaml | 2 +- mkfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {