]> granicus.if.org Git - apache/commitdiff
* support/httxt2dbm.c: Fix some style nits, no functional change.
authorJoe Orton <jorton@apache.org>
Fri, 19 Aug 2005 10:18:10 +0000 (10:18 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 19 Aug 2005 10:18:10 +0000 (10:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@233462 13f79535-47bb-0310-9956-ffa450edef68

support/httxt2dbm.c

index 6e24e8019d4ab363ceed35677a9783f2ab073c1c..023f02d4b2336cd634ad427990ddf440c08c7029 100644 (file)
@@ -54,10 +54,10 @@ static int verbose;
 
 static void usage(void)
 {
-    const charhave_sdbm;
-    const charhave_gdbm;
-    const charhave_ndbm;
-    const charhave_db;
+    const char *have_sdbm;
+    const char *have_gdbm;
+    const char *have_ndbm;
+    const char *have_db;
 
 #if APU_HAVE_SDBM
     have_sdbm = AVAIL;
@@ -138,7 +138,7 @@ static apr_status_t to_dbm(apr_dbm_t *dbm, apr_file_t *fp, apr_pool_t *pool)
         dbmkey.dptr = apr_pstrmemdup(p, line,  c - line);
         dbmkey.dsize = (c - line);
 
-        while(*c && apr_isspace(*c)) {
+        while (*c && apr_isspace(*c)) {
             ++c;
         }
 
@@ -149,7 +149,7 @@ static apr_status_t to_dbm(apr_dbm_t *dbm, apr_file_t *fp, apr_pool_t *pool)
 
         value = c;
 
-        while(*c && !apr_isspace(*c)) {
+        while (*c && !apr_isspace(*c)) {
             ++c;
         }
 
@@ -173,7 +173,7 @@ static apr_status_t to_dbm(apr_dbm_t *dbm, apr_file_t *fp, apr_pool_t *pool)
     return rv;
 }
 
-int main(int argc, const charconst argv[]) 
+int main(int argc, const char *const argv[]) 
 {
     apr_pool_t *pool;
     apr_status_t rv = APR_SUCCESS;