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

Unified Diff: fusl/src/termios/tcsetattr.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/termios/tcsetattr.c
diff --git a/fusl/src/termios/tcsetattr.c b/fusl/src/termios/tcsetattr.c
index 94df18f91e1718b034303c32b8ee919808ac9f9c..f3a7bea6145578b8cac5862601fad921d054f0cc 100644
--- a/fusl/src/termios/tcsetattr.c
+++ b/fusl/src/termios/tcsetattr.c
@@ -2,11 +2,10 @@
#include <sys/ioctl.h>
#include <errno.h>
-int tcsetattr(int fd, int act, const struct termios *tio)
-{
- if (act < 0 || act > 2) {
- errno = EINVAL;
- return -1;
- }
- return ioctl(fd, TCSETS+act, tio);
+int tcsetattr(int fd, int act, const struct termios* tio) {
+ if (act < 0 || act > 2) {
+ errno = EINVAL;
+ return -1;
+ }
+ return ioctl(fd, TCSETS + act, tio);
}

Powered by Google App Engine
This is Rietveld 408576698