From b38a11648ba05a664d1f0ddf63bd65062e0781ed Mon Sep 17 00:00:00 2001 From: Brendan O'Dea Date: Fri, 24 Jul 2026 00:50:53 +1000 Subject: [PATCH] Add .clang-format to match current formatting. It looks like an update to clang-format-action may have changed the default, as the code was previously formatted with clang-format (64c067d). Apply resulting style to a couple of comments. --- .clang-format | 2 ++ compat/getgrent_r.c | 2 +- compat/getpwent_r.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..c77dc36 --- /dev/null +++ b/.clang-format @@ -0,0 +1,2 @@ +BasedOnStyle: Google +PointerAlignment: Right diff --git a/compat/getgrent_r.c b/compat/getgrent_r.c index 586f041..b70e19e 100644 --- a/compat/getgrent_r.c +++ b/compat/getgrent_r.c @@ -110,4 +110,4 @@ int fgetgrent_r(FILE *f, struct group *gr, char *line, size_t size, if (rv) errno = rv; return rv; } -#endif //#if defined(BSD) || defined(__linux__) && !defined(__GLIBC__) +#endif // #if defined(BSD) || defined(__linux__) && !defined(__GLIBC__) diff --git a/compat/getpwent_r.c b/compat/getpwent_r.c index e7de338..c0afb0e 100644 --- a/compat/getpwent_r.c +++ b/compat/getpwent_r.c @@ -89,4 +89,4 @@ int fgetpwent_r(FILE *f, struct passwd *pw, char *line, size_t size, if (rv) errno = rv; return rv; } -#endif //#if defined(BSD) || defined(__linux__) && !defined(__GLIBC__) +#endif // #if defined(BSD) || defined(__linux__) && !defined(__GLIBC__)