Skip to content

Commit 3d4d650

Browse files
committed
clang-format: bump clang-format version to latest Fedora 41
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.
1 parent 23c4e60 commit 3d4d650

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
clang-format:
1212
runs-on: ubuntu-latest
1313
container:
14-
image: fedora:40
14+
image: fedora:41
1515
steps:
1616
- name: Install packages
1717
run: |

include/base/nl-base-utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193

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

199199
/*****************************************************************************/

lib/route/neightbl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static uint64_t neightbl_compare(struct nl_object *_a, struct nl_object *_b,
189189
!(b->ce_mask & NEIGHTBL_ATTR_PARMS))
190190
return diff;
191191

192-
/* XXX: FIXME: Compare parameter table */
192+
/* XXX: FIXME: Compare parameter table */
193193

194194
#if 0
195195
#define REQ(F) (fp->ntp_mask & NEIGHTBLPARM_ATTR_##F)

0 commit comments

Comments
 (0)