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

Unified Diff: fusl/src/network/inet_ntoa.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/inet_ntoa.c
diff --git a/fusl/src/network/inet_ntoa.c b/fusl/src/network/inet_ntoa.c
index 71411e0b5f145a59838a02149ef26644e6e4199f..31ce26dc84ca6908d0983410dcc7b4d18e186f0e 100644
--- a/fusl/src/network/inet_ntoa.c
+++ b/fusl/src/network/inet_ntoa.c
@@ -1,10 +1,9 @@
#include <arpa/inet.h>
#include <stdio.h>
-char *inet_ntoa(struct in_addr in)
-{
- static char buf[16];
- unsigned char *a = (void *)&in;
- snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
- return buf;
+char* inet_ntoa(struct in_addr in) {
+ static char buf[16];
+ unsigned char* a = (void*)&in;
+ snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
+ return buf;
}

Powered by Google App Engine
This is Rietveld 408576698