masqmail

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 diff
     1.1 --- a/src/peopen.c	Thu Sep 22 15:07:40 2011 +0200
     1.2 +++ b/src/peopen.c	Thu Oct 20 10:20:59 2011 +0200
     1.3 @@ -1,6 +1,7 @@
     1.4 -/* This a snippet I found in sourceforge. I just changed the identing
     1.5 -   style to my own and deleted the main function. -- oku
     1.6 -   The functions destroy_argv() and create_argv() were added by oku.
     1.7 +/*
     1.8 +**  This a snippet I found in sourceforge. I just changed the identing
     1.9 +**  style to my own and deleted the main function. -- oku
    1.10 +**  The functions destroy_argv() and create_argv() were added by oku.
    1.11  */
    1.12  
    1.13  #include <errno.h>
    1.14 @@ -55,7 +56,8 @@
    1.15  }
    1.16  
    1.17  FILE*
    1.18 -peidopen(const char *command, const char *type, char *const envp[], int *ret_pid, uid_t uid, gid_t gid)
    1.19 +peidopen(const char *command, const char *type, char *const envp[],
    1.20 +		int *ret_pid, uid_t uid, gid_t gid)
    1.21  {
    1.22  	enum { Read, Write } mode;
    1.23  	int pipe_fd[2];
    1.24 @@ -93,7 +95,7 @@
    1.25  		if (close(pipe_fd[mode == Read ? 0 : 1]) != -1 &&
    1.26  			dup2(pipe_fd[mode == Read ? 1 : 0],
    1.27  				 mode == Read ? STDOUT_FILENO : STDIN_FILENO) != -1) {
    1.28 -			/*      char *argv [] = { "/bin/sh", "-c", (char*) command, NULL }; */
    1.29 +			/* char *argv [] = { "/bin/sh", "-c", (char*) command, NULL }; */
    1.30  			char **argv = create_argv(command, 10);
    1.31  			int ret;
    1.32