mirror of
https://github.com/apache/httpd.git
synced 2025-08-10 02:56:11 +00:00
Silence a sparse warning about inconsistent indenting + some minor style issues
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700338 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -122,7 +122,7 @@ static void usage(void)
|
|||||||
"Options:" NL
|
"Options:" NL
|
||||||
" -s Record statistics to STATFILE when finished." NL
|
" -s Record statistics to STATFILE when finished." NL
|
||||||
NL
|
NL
|
||||||
" -c Perform double lookups when resolving IP addresses." NL,
|
" -c Perform double lookups when resolving IP addresses." NL,
|
||||||
shortname, shortname);
|
shortname, shortname);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -200,7 +200,7 @@ int main(int argc, const char * const argv[])
|
|||||||
apr_file_buffer_set(outfile, outbuffer, WRITE_BUF_SIZE);
|
apr_file_buffer_set(outfile, outbuffer, WRITE_BUF_SIZE);
|
||||||
|
|
||||||
cache = apr_hash_make(pool);
|
cache = apr_hash_make(pool);
|
||||||
if(apr_pool_create(&pline, pool) != APR_SUCCESS){
|
if (apr_pool_create(&pline, pool) != APR_SUCCESS) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,7 +220,7 @@ int main(int argc, const char * const argv[])
|
|||||||
|
|
||||||
/* Check if this could even be an IP address */
|
/* Check if this could even be an IP address */
|
||||||
if (!apr_isxdigit(line[0]) && line[0] != ':') {
|
if (!apr_isxdigit(line[0]) && line[0] != ':') {
|
||||||
withname++;
|
withname++;
|
||||||
apr_file_puts(line, outfile);
|
apr_file_puts(line, outfile);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -315,7 +315,7 @@ int main(int argc, const char * const argv[])
|
|||||||
if (stats) {
|
if (stats) {
|
||||||
apr_file_t *statsfile;
|
apr_file_t *statsfile;
|
||||||
if (apr_file_open(&statsfile, stats,
|
if (apr_file_open(&statsfile, stats,
|
||||||
APR_FOPEN_WRITE | APR_FOPEN_CREATE | APR_FOPEN_TRUNCATE,
|
APR_FOPEN_WRITE | APR_FOPEN_CREATE | APR_FOPEN_TRUNCATE,
|
||||||
APR_OS_DEFAULT, pool) != APR_SUCCESS) {
|
APR_OS_DEFAULT, pool) != APR_SUCCESS) {
|
||||||
apr_file_printf(errfile, "%s: Could not open %s for writing.",
|
apr_file_printf(errfile, "%s: Could not open %s for writing.",
|
||||||
shortname, stats);
|
shortname, stats);
|
||||||
|
Reference in New Issue
Block a user