diff src/peopen.c @ 367:b27f66555ba8

Reformated multiline comments to have leading asterisks on each line Now we use: /* ** comment */ This makes the indent style simpler, too.
author markus schnalke <meillo@marmaro.de>
date Thu, 20 Oct 2011 10:20:59 +0200
parents dcb315792513
children 9bc3e47b0222
line wrap: on
line diff
--- a/src/peopen.c	Thu Sep 22 15:07:40 2011 +0200
+++ b/src/peopen.c	Thu Oct 20 10:20:59 2011 +0200
@@ -1,6 +1,7 @@
-/* This a snippet I found in sourceforge. I just changed the identing
-   style to my own and deleted the main function. -- oku
-   The functions destroy_argv() and create_argv() were added by oku.
+/*
+**  This a snippet I found in sourceforge. I just changed the identing
+**  style to my own and deleted the main function. -- oku
+**  The functions destroy_argv() and create_argv() were added by oku.
 */
 
 #include <errno.h>
@@ -55,7 +56,8 @@
 }
 
 FILE*
-peidopen(const char *command, const char *type, char *const envp[], int *ret_pid, uid_t uid, gid_t gid)
+peidopen(const char *command, const char *type, char *const envp[],
+		int *ret_pid, uid_t uid, gid_t gid)
 {
 	enum { Read, Write } mode;
 	int pipe_fd[2];
@@ -93,7 +95,7 @@
 		if (close(pipe_fd[mode == Read ? 0 : 1]) != -1 &&
 			dup2(pipe_fd[mode == Read ? 1 : 0],
 				 mode == Read ? STDOUT_FILENO : STDIN_FILENO) != -1) {
-			/*      char *argv [] = { "/bin/sh", "-c", (char*) command, NULL }; */
+			/* char *argv [] = { "/bin/sh", "-c", (char*) command, NULL }; */
 			char **argv = create_argv(command, 10);
 			int ret;