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

Unified Diff: fusl/include/grp.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/grp.h
diff --git a/fusl/include/grp.h b/fusl/include/grp.h
index b331d3264c0f1eb4a9844d8a54e4143e514d9609..5179f34c95720a8153f56528fd17c32b087e23a8 100644
--- a/fusl/include/grp.h
+++ b/fusl/include/grp.h
@@ -1,5 +1,5 @@
-#ifndef _GRP_H
-#define _GRP_H
+#ifndef _GRP_H
+#define _GRP_H
#ifdef __cplusplus
extern "C" {
@@ -16,33 +16,32 @@ extern "C" {
#include <bits/alltypes.h>
-struct group
-{
- char *gr_name;
- char *gr_passwd;
- gid_t gr_gid;
- char **gr_mem;
+struct group {
+ char* gr_name;
+ char* gr_passwd;
+ gid_t gr_gid;
+ char** gr_mem;
};
-struct group *getgrgid(gid_t);
-struct group *getgrnam(const char *);
+struct group* getgrgid(gid_t);
+struct group* getgrnam(const char*);
-int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
-int getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
+int getgrgid_r(gid_t, struct group*, char*, size_t, struct group**);
+int getgrnam_r(const char*, struct group*, char*, size_t, struct group**);
-struct group *getgrent(void);
-void endgrent(void);
-void setgrent(void);
+struct group* getgrent(void);
+void endgrent(void);
+void setgrent(void);
#ifdef _GNU_SOURCE
-struct group *fgetgrent(FILE *stream);
-int putgrent(const struct group *, FILE *);
+struct group* fgetgrent(FILE* stream);
+int putgrent(const struct group*, FILE*);
#endif
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-int getgrouplist(const char *, gid_t, gid_t *, int *);
-int setgroups(size_t, const gid_t *);
-int initgroups(const char *, gid_t);
+int getgrouplist(const char*, gid_t, gid_t*, int*);
+int setgroups(size_t, const gid_t*);
+int initgroups(const char*, gid_t);
#endif
#ifdef __cplusplus
« fusl/arch/aarch64/atomic_arch.h ('K') | « fusl/include/glob.h ('k') | fusl/include/iconv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698