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

Unified Diff: fusl/src/passwd/putpwent.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/passwd/putpwent.c
diff --git a/fusl/src/passwd/putpwent.c b/fusl/src/passwd/putpwent.c
index 3a02e5730482044d56e1458b26360fefa3f85541..d6739f40ac17eee951a5d0789108891ee3acfd88 100644
--- a/fusl/src/passwd/putpwent.c
+++ b/fusl/src/passwd/putpwent.c
@@ -2,9 +2,10 @@
#include <pwd.h>
#include <stdio.h>
-int putpwent(const struct passwd *pw, FILE *f)
-{
- return fprintf(f, "%s:%s:%d:%d:%s:%s:%s\n",
- pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid,
- pw->pw_gecos, pw->pw_dir, pw->pw_shell)<0 ? -1 : 0;
+int putpwent(const struct passwd* pw, FILE* f) {
+ return fprintf(f, "%s:%s:%d:%d:%s:%s:%s\n", pw->pw_name, pw->pw_passwd,
+ pw->pw_uid, pw->pw_gid, pw->pw_gecos, pw->pw_dir,
+ pw->pw_shell) < 0
+ ? -1
+ : 0;
}

Powered by Google App Engine
This is Rietveld 408576698