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

Unified Diff: fusl/src/network/gai_strerror.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/gai_strerror.c
diff --git a/fusl/src/network/gai_strerror.c b/fusl/src/network/gai_strerror.c
index 9596580e9ffbda7a2e46465ab0f91256db5c51a9..e367e0c188f0d82d42740284285c1ea842f43139 100644
--- a/fusl/src/network/gai_strerror.c
+++ b/fusl/src/network/gai_strerror.c
@@ -2,24 +2,26 @@
#include "locale_impl.h"
static const char msgs[] =
- "Invalid flags\0"
- "Name does not resolve\0"
- "Try again\0"
- "Non-recoverable error\0"
- "Unknown error\0"
- "Unrecognized address family or invalid length\0"
- "Unrecognized socket type\0"
- "Unrecognized service\0"
- "Unknown error\0"
- "Out of memory\0"
- "System error\0"
- "Overflow\0"
- "\0Unknown error";
+ "Invalid flags\0"
+ "Name does not resolve\0"
+ "Try again\0"
+ "Non-recoverable error\0"
+ "Unknown error\0"
+ "Unrecognized address family or invalid length\0"
+ "Unrecognized socket type\0"
+ "Unrecognized service\0"
+ "Unknown error\0"
+ "Out of memory\0"
+ "System error\0"
+ "Overflow\0"
+ "\0Unknown error";
-const char *gai_strerror(int ecode)
-{
- const char *s;
- for (s=msgs, ecode++; ecode && *s; ecode++, s++) for (; *s; s++);
- if (!*s) s++;
- return LCTRANS_CUR(s);
+const char* gai_strerror(int ecode) {
+ const char* s;
+ for (s = msgs, ecode++; ecode && *s; ecode++, s++)
+ for (; *s; s++)
+ ;
+ if (!*s)
+ s++;
+ return LCTRANS_CUR(s);
}

Powered by Google App Engine
This is Rietveld 408576698