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

Side by Side 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 unified diff | Download patch
OLDNEW
1 #define _GNU_SOURCE 1 #define _GNU_SOURCE
2 #include <pwd.h> 2 #include <pwd.h>
3 #include <stdio.h> 3 #include <stdio.h>
4 4
5 int putpwent(const struct passwd *pw, FILE *f) 5 int putpwent(const struct passwd* pw, FILE* f) {
6 { 6 return fprintf(f, "%s:%s:%d:%d:%s:%s:%s\n", pw->pw_name, pw->pw_passwd,
7 » return fprintf(f, "%s:%s:%d:%d:%s:%s:%s\n", 7 pw->pw_uid, pw->pw_gid, pw->pw_gecos, pw->pw_dir,
8 » » pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, 8 pw->pw_shell) < 0
9 » » pw->pw_gecos, pw->pw_dir, pw->pw_shell)<0 ? -1 : 0; 9 ? -1
10 : 0;
10 } 11 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698