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; |
} |