Skip to content

Commit a36011e

Browse files
committed
Fix workflow lib dep.
1 parent df3b0ae commit a36011e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
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

file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ static ssize_t simplefs_write(struct file *file,
413413
size_t bytes_to_write =
414414
min_t(size_t, len, SIMPLEFS_BLOCK_SIZE - pos % SIMPLEFS_BLOCK_SIZE);
415415

416-
if (copy_from_user(bh_data->b_data + pos % SIMPLEFS_BLOCK_SIZE, buf + bytes_write,
417-
bytes_to_write)) {
416+
if (copy_from_user(bh_data->b_data + pos % SIMPLEFS_BLOCK_SIZE,
417+
buf + bytes_write, bytes_to_write)) {
418418
brelse(bh_data);
419419
bytes_write = -EFAULT;
420420
break;

mkfs.c

Lines changed: 1 addition & 1 deletion
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)