utils: mctp-pipe: Format with clang-format
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I8159d7e16a965a76232d2a6311df851e301487c9
diff --git a/.clang-ignore b/.clang-ignore
index 0a6733a..6d05729 100644
--- a/.clang-ignore
+++ b/.clang-ignore
@@ -12,4 +12,3 @@
tests/test_serial.c
utils/mctp-astlpc-daemon.c
utils/mctp-demux-daemon.c
-utils/mctp-pipe.c
diff --git a/utils/mctp-pipe.c b/utils/mctp-pipe.c
index 12da74f..f1e041b 100644
--- a/utils/mctp-pipe.c
+++ b/utils/mctp-pipe.c
@@ -12,9 +12,9 @@
#include <sys/poll.h>
#include <sys/socket.h>
-static void
-rx_message(uint8_t eid __unused, bool tag_owner __unused,
- uint8_t msg_tag __unused, void *data __unused, void *msg, size_t len)
+static void rx_message(uint8_t eid __unused, bool tag_owner __unused,
+ uint8_t msg_tag __unused, void *data __unused, void *msg,
+ size_t len)
{
ssize_t rc;
@@ -28,7 +28,7 @@
int main(void)
{
struct mctp_binding_serial *serial[2];
- mctp_eid_t eids[] = {8, 9};
+ mctp_eid_t eids[] = { 8, 9 };
struct pollfd pollfds[3];
int rc, n, mctp_fds[2];
struct mctp *mctp[2];
@@ -50,8 +50,10 @@
mctp_serial_open_fd(serial[0], mctp_fds[0]);
mctp_serial_open_fd(serial[1], mctp_fds[1]);
- mctp_register_bus(mctp[0], mctp_binding_serial_core(serial[0]), eids[0]);
- mctp_register_bus(mctp[1], mctp_binding_serial_core(serial[1]), eids[1]);
+ mctp_register_bus(mctp[0], mctp_binding_serial_core(serial[0]),
+ eids[0]);
+ mctp_register_bus(mctp[1], mctp_binding_serial_core(serial[1]),
+ eids[1]);
mctp_set_rx_all(mctp[1], rx_message, NULL);
@@ -102,5 +104,4 @@
}
return EXIT_SUCCESS;
-
}