about summary refs log tree commit diff
path: root/filter.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-08-31 17:30:17 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-08-31 17:30:17 +0200
commit66d0eff12fdf31e520493e7c2accb95410dcaec2 (patch)
treef67b59076967ec441daaf7e7c40c1d502a9136bd /filter.c
parentdfe09a7c5e3a2273f963d53432ef1686b34547db (diff)
downloadmblaze-66d0eff12fdf31e520493e7c2accb95410dcaec2.tar.gz
mblaze-66d0eff12fdf31e520493e7c2accb95410dcaec2.tar.xz
mblaze-66d0eff12fdf31e520493e7c2accb95410dcaec2.zip
style
Diffstat (limited to 'filter.c')
-rw-r--r--filter.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/filter.c b/filter.c
index 7b86106..480cd52 100644
--- a/filter.c
+++ b/filter.c
@@ -1,9 +1,9 @@
 #include <sys/wait.h>
 
-#include <fcntl.h>
 #include <errno.h>
+#include <fcntl.h>
 #include <limits.h>
-#include <poll.h>	     
+#include <poll.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -24,7 +24,7 @@ filter(char *input, size_t inlen, char *cmd, char **outputo, size_t *outleno)
 	sigemptyset(&mask);
 	sigaddset(&mask, SIGPIPE);
 	sigprocmask(SIG_BLOCK, &mask, &orig_mask);
-	
+
 	outlen = 0;
 	output = malloc(outalloc);
 	if (!output)
@@ -56,7 +56,7 @@ filter(char *input, size_t inlen, char *cmd, char **outputo, size_t *outleno)
 	}
 	close(pipe0[0]);
 	close(pipe1[1]);
-	
+
 	if (pid < 0) {
 		close(pipe0[1]);
 		close(pipe1[0]);
@@ -89,7 +89,7 @@ filter(char *input, size_t inlen, char *cmd, char **outputo, size_t *outleno)
 		} else if (fds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) {
 			fds[0].fd = -1;
 		}
-		
+
 		if (fds[1].revents & POLLOUT) {
 			ssize_t ret = write(fds[1].fd, input, inlen);
 			if (ret > 0) {