Skip to content

Commit

Permalink
clang-format: bump clang-format version to latest Fedora 41
Browse files Browse the repository at this point in the history
We use clang-format for formatting the code. The actual formatting
depends on the version of clang-format, as the tool improves, the
formatting slightly changes. We thus need to agree on which version to
use.

The used version is the one that gets check in the github test, and it's
the one from a recent Fedora release.

Now, with Fedora 41 out, bump the version from 18.1.8-1.fc40 to
19.1.0-1.fc41.
  • Loading branch information
thom311 committed Nov 13, 2024
1 parent 23c4e60 commit 3d4d650
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
clang-format:
runs-on: ubuntu-latest
container:
image: fedora:40
image: fedora:41
steps:
- name: Install packages
run: |
Expand Down
2 changes: 1 addition & 1 deletion include/base/nl-base-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@

/* This is also defined in stddef.h */
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) & ((TYPE *)0)->MEMBER)
#define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER)
#endif

/*****************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion lib/route/neightbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static uint64_t neightbl_compare(struct nl_object *_a, struct nl_object *_b,
!(b->ce_mask & NEIGHTBL_ATTR_PARMS))
return diff;

/* XXX: FIXME: Compare parameter table */
/* XXX: FIXME: Compare parameter table */

#if 0
#define REQ(F) (fp->ntp_mask & NEIGHTBLPARM_ATTR_##F)
Expand Down

0 comments on commit 3d4d650

Please sign in to comment.