Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Unified Diff: fusl/src/network/ntohl.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/network/ntohl.c
diff --git a/fusl/src/network/ntohl.c b/fusl/src/network/ntohl.c
index d6fce4590d43a3ee868d7cd807c89c0b6599ee3e..4139a83b19b62c1bb8815c168801199e880de661 100644
--- a/fusl/src/network/ntohl.c
+++ b/fusl/src/network/ntohl.c
@@ -1,8 +1,10 @@
#include <netinet/in.h>
#include <byteswap.h>
-uint32_t ntohl(uint32_t n)
-{
- union { int i; char c; } u = { 1 };
- return u.c ? bswap_32(n) : n;
+uint32_t ntohl(uint32_t n) {
+ union {
+ int i;
+ char c;
+ } u = {1};
+ return u.c ? bswap_32(n) : n;
}

Powered by Google App Engine
This is Rietveld 408576698