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

Unified Diff: fusl/src/misc/ptsname.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/misc/ptsname.c
diff --git a/fusl/src/misc/ptsname.c b/fusl/src/misc/ptsname.c
index a34779276fa011be935e1db0860d775165ba8729..41a641167b58f3b13123035c3905b6f354d22fc5 100644
--- a/fusl/src/misc/ptsname.c
+++ b/fusl/src/misc/ptsname.c
@@ -1,15 +1,14 @@
#include <stdlib.h>
#include <errno.h>
-int __ptsname_r(int, char *, size_t);
+int __ptsname_r(int, char*, size_t);
-char *ptsname(int fd)
-{
- static char buf[9 + sizeof(int)*3 + 1];
- int err = __ptsname_r(fd, buf, sizeof buf);
- if (err) {
- errno = err;
- return 0;
- }
- return buf;
+char* ptsname(int fd) {
+ static char buf[9 + sizeof(int) * 3 + 1];
+ int err = __ptsname_r(fd, buf, sizeof buf);
+ if (err) {
+ errno = err;
+ return 0;
+ }
+ return buf;
}

Powered by Google App Engine
This is Rietveld 408576698