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

Unified Diff: fusl/src/network/inet_addr.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_addr.c
diff --git a/fusl/src/network/inet_addr.c b/fusl/src/network/inet_addr.c
index 10b21f211cfd7a9b6044c5ac88704daeea1d9b66..13e313b52651d1fac3aaba15f3ea018ec3f70082 100644
--- a/fusl/src/network/inet_addr.c
+++ b/fusl/src/network/inet_addr.c
@@ -2,11 +2,11 @@
#include <netinet/in.h>
#include <arpa/inet.h>
-int __inet_aton(const char *, struct in_addr *);
+int __inet_aton(const char*, struct in_addr*);
-in_addr_t inet_addr(const char *p)
-{
- struct in_addr a;
- if (!__inet_aton(p, &a)) return -1;
- return a.s_addr;
+in_addr_t inet_addr(const char* p) {
+ struct in_addr a;
+ if (!__inet_aton(p, &a))
+ return -1;
+ return a.s_addr;
}

Powered by Google App Engine
This is Rietveld 408576698