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

Unified Diff: fusl/include/pwd.h

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/include/pwd.h
diff --git a/fusl/include/pwd.h b/fusl/include/pwd.h
index 55d9d42d379e9146d12c8e8a2fcd6f2b15af9288..66483bb89b760ce08f7b06ea8c068323e25acbbc 100644
--- a/fusl/include/pwd.h
+++ b/fusl/include/pwd.h
@@ -17,29 +17,28 @@ extern "C" {
#include <bits/alltypes.h>
-struct passwd
-{
- char *pw_name;
- char *pw_passwd;
- uid_t pw_uid;
- gid_t pw_gid;
- char *pw_gecos;
- char *pw_dir;
- char *pw_shell;
+struct passwd {
+ char* pw_name;
+ char* pw_passwd;
+ uid_t pw_uid;
+ gid_t pw_gid;
+ char* pw_gecos;
+ char* pw_dir;
+ char* pw_shell;
};
-void setpwent (void);
-void endpwent (void);
-struct passwd *getpwent (void);
+void setpwent(void);
+void endpwent(void);
+struct passwd* getpwent(void);
-struct passwd *getpwuid (uid_t);
-struct passwd *getpwnam (const char *);
-int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
-int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **);
+struct passwd* getpwuid(uid_t);
+struct passwd* getpwnam(const char*);
+int getpwuid_r(uid_t, struct passwd*, char*, size_t, struct passwd**);
+int getpwnam_r(const char*, struct passwd*, char*, size_t, struct passwd**);
#ifdef _GNU_SOURCE
-struct passwd *fgetpwent(FILE *);
-int putpwent(const struct passwd *, FILE *);
+struct passwd* fgetpwent(FILE*);
+int putpwent(const struct passwd*, FILE*);
#endif
#ifdef __cplusplus
« fusl/arch/aarch64/atomic_arch.h ('K') | « fusl/include/pty.h ('k') | fusl/include/regex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698