Skip to content

Commit abc8c7f

Browse files
authored
Merge pull request #69 from RoyWFHuang/Fix_workflows
Enforce the use of recent clang-format
1 parent 31258fc commit abc8c7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/main.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v4
2323
- name: coding convention
2424
run: |
25-
sudo apt-get install -q -y clang-format-12
25+
sudo apt-get install -q -y clang-format
2626
.ci/check-newline.sh
2727
.ci/check-format.sh
2828
shell: bash

mkfs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ _Static_assert(sizeof(struct superblock) == SIMPLEFS_BLOCK_SIZE);
2626
*
2727
* Return the result of n / d, rounded up to the nearest integer.
2828
*/
29-
#define DIV_ROUND_UP(n, d) (((n) + (d) -1) / (d))
29+
#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
3030

3131
static struct superblock *write_superblock(int fd, struct stat *fstats)
3232
{

0 commit comments

Comments
 (0)