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/legacy/cuserid.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/legacy/cuserid.c
diff --git a/fusl/src/legacy/cuserid.c b/fusl/src/legacy/cuserid.c
index 4e78798ded26b09992bb69c4383447a805ae2ab9..771549cd3cebc62fe4eebad4cda34004ef718d4c 100644
--- a/fusl/src/legacy/cuserid.c
+++ b/fusl/src/legacy/cuserid.c
@@ -3,12 +3,11 @@
#include <stdio.h>
#include <unistd.h>
-char *cuserid(char *buf)
-{
- struct passwd pw, *ppw;
- long pwb[256];
- if (getpwuid_r(geteuid(), &pw, (void *)pwb, sizeof pwb, &ppw))
- return 0;
- snprintf(buf, L_cuserid, "%s", pw.pw_name);
- return buf;
+char* cuserid(char* buf) {
+ struct passwd pw, *ppw;
+ long pwb[256];
+ if (getpwuid_r(geteuid(), &pw, (void*)pwb, sizeof pwb, &ppw))
+ return 0;
+ snprintf(buf, L_cuserid, "%s", pw.pw_name);
+ return buf;
}

Powered by Google App Engine
This is Rietveld 408576698