clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I1617773783af90585a0ff753b6fa548d614f4d09
diff --git a/console-server.c b/console-server.c
index 0a0477d..815431c 100644
--- a/console-server.c
+++ b/console-server.c
@@ -526,10 +526,9 @@
console->pollers[n] = poller;
/* increase pollfds array too */
- console->pollfds =
- reallocarray(console->pollfds,
- (MAX_INTERNAL_POLLFD + console->n_pollers),
- sizeof(*console->pollfds));
+ console->pollfds = reallocarray(
+ console->pollfds, (MAX_INTERNAL_POLLFD + console->n_pollers),
+ sizeof(*console->pollfds));
/* shift the end pollfds up by one */
memcpy(&console->pollfds[n + 1], &console->pollfds[n],
@@ -575,10 +574,9 @@
sizeof(*console->pollfds) *
(MAX_INTERNAL_POLLFD + console->n_pollers - i));
- console->pollfds =
- reallocarray(console->pollfds,
- (MAX_INTERNAL_POLLFD + console->n_pollers),
- sizeof(*console->pollfds));
+ console->pollfds = reallocarray(
+ console->pollfds, (MAX_INTERNAL_POLLFD + console->n_pollers),
+ sizeof(*console->pollfds));
free(poller);
}