httpd: get rid of big, useless blocks (deindent,

bring code under 80 columns)
This commit is contained in:
Denis Vlasenko 2006-11-21 00:07:31 +00:00
parent 0bb993f39b
commit a3ee69fa6c

View File

@ -963,16 +963,18 @@ static int sendCgi(const char *url,
int inFd; int inFd;
int outFd; int outFd;
int firstLine = 1; int firstLine = 1;
int status;
size_t post_readed_size, post_readed_idx;
if (pipe(fromCgi) != 0) if (pipe(fromCgi) != 0)
return 0; return 0;
if (pipe(toCgi) != 0) if (pipe(toCgi) != 0)
return 0; return 0;
pid = fork(); pid = fork();
if (pid < 0) if (pid < 0)
return 0; return 0;
do {
if (!pid) { if (!pid) {
/* child process */ /* child process */
char *script; char *script;
@ -1096,13 +1098,10 @@ static int sendCgi(const char *url,
_exit(242); _exit(242);
} /* end child */ } /* end child */
} while (0);
if (pid > 0) {
/* parent process */ /* parent process */
int status;
size_t post_readed_size = 0, post_readed_idx = 0;
post_readed_size = 0;
post_readed_idx = 0;
inFd = fromCgi[0]; inFd = fromCgi[0];
outFd = toCgi[1]; outFd = toCgi[1];
close(fromCgi[1]); close(fromCgi[1]);
@ -1203,7 +1202,6 @@ static int sendCgi(const char *url,
} }
} }
} }
}
return 0; return 0;
} }
#endif /* FEATURE_HTTPD_CGI */ #endif /* FEATURE_HTTPD_CGI */