Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5566D17C7A for ; Mon, 31 Aug 2015 20:46:24 +0000 (UTC) Received: (qmail 83206 invoked by uid 500); 31 Aug 2015 20:46:24 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 83141 invoked by uid 500); 31 Aug 2015 20:46:24 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 83132 invoked by uid 99); 31 Aug 2015 20:46:24 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2015 20:46:24 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 18BCBAC0095 for ; Mon, 31 Aug 2015 20:46:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1700338 - /httpd/httpd/trunk/support/logresolve.c Date: Mon, 31 Aug 2015 20:46:24 -0000 To: cvs@httpd.apache.org From: jailletc36@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150831204624.18BCBAC0095@hades.apache.org> Author: jailletc36 Date: Mon Aug 31 20:46:23 2015 New Revision: 1700338 URL: http://svn.apache.org/r1700338 Log: Silence a sparse warning about inconsistent indenting + some minor style issues Modified: httpd/httpd/trunk/support/logresolve.c Modified: httpd/httpd/trunk/support/logresolve.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/logresolve.c?rev=1700338&r1=1700337&r2=1700338&view=diff ============================================================================== --- httpd/httpd/trunk/support/logresolve.c (original) +++ httpd/httpd/trunk/support/logresolve.c Mon Aug 31 20:46:23 2015 @@ -122,7 +122,7 @@ static void usage(void) "Options:" NL " -s Record statistics to STATFILE when finished." NL NL - " -c Perform double lookups when resolving IP addresses." NL, + " -c Perform double lookups when resolving IP addresses." NL, shortname, shortname); exit(1); } @@ -200,7 +200,7 @@ int main(int argc, const char * const ar apr_file_buffer_set(outfile, outbuffer, WRITE_BUF_SIZE); cache = apr_hash_make(pool); - if(apr_pool_create(&pline, pool) != APR_SUCCESS){ + if (apr_pool_create(&pline, pool) != APR_SUCCESS) { return 1; } @@ -220,7 +220,7 @@ int main(int argc, const char * const ar /* Check if this could even be an IP address */ if (!apr_isxdigit(line[0]) && line[0] != ':') { - withname++; + withname++; apr_file_puts(line, outfile); continue; } @@ -315,7 +315,7 @@ int main(int argc, const char * const ar if (stats) { apr_file_t *statsfile; 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_file_printf(errfile, "%s: Could not open %s for writing.", shortname, stats);