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

Unified Diff: fusl/src/process/posix_spawn_file_actions_addclose.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/process/posix_spawn_file_actions_addclose.c
diff --git a/fusl/src/process/posix_spawn_file_actions_addclose.c b/fusl/src/process/posix_spawn_file_actions_addclose.c
index cdda5979916dd1437cc1e0249617847291fcd3e9..65bf61ac37c2cf350a9b3d941ed6c145020b6287 100644
--- a/fusl/src/process/posix_spawn_file_actions_addclose.c
+++ b/fusl/src/process/posix_spawn_file_actions_addclose.c
@@ -3,14 +3,15 @@
#include <errno.h>
#include "fdop.h"
-int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *fa, int fd)
-{
- struct fdop *op = malloc(sizeof *op);
- if (!op) return ENOMEM;
- op->cmd = FDOP_CLOSE;
- op->fd = fd;
- if ((op->next = fa->__actions)) op->next->prev = op;
- op->prev = 0;
- fa->__actions = op;
- return 0;
+int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t* fa, int fd) {
+ struct fdop* op = malloc(sizeof *op);
+ if (!op)
+ return ENOMEM;
+ op->cmd = FDOP_CLOSE;
+ op->fd = fd;
+ if ((op->next = fa->__actions))
+ op->next->prev = op;
+ op->prev = 0;
+ fa->__actions = op;
+ return 0;
}

Powered by Google App Engine
This is Rietveld 408576698