]> granicus.if.org Git - apache/commitdiff
No functional change: remove "internal" tab spacing/formatting.
authorJim Jagielski <jim@apache.org>
Wed, 16 Nov 2005 16:31:25 +0000 (16:31 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 16 Nov 2005 16:31:25 +0000 (16:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@345053 13f79535-47bb-0310-9956-ffa450edef68

33 files changed:
modules/arch/netware/mod_nw_ssl.c
modules/cache/cache_hash.c
modules/cache/mod_disk_cache.c
modules/cache/mod_file_cache.c
modules/dav/fs/lock.c
modules/echo/mod_echo.c
modules/generators/mod_asis.c
modules/generators/mod_suexec.c
modules/http/chunk_filter.c
modules/http/http_core.c
modules/http/http_etag.c
modules/ldap/util_ldap.c
modules/mappers/mod_actions.c
modules/mappers/mod_imagemap.c
modules/mappers/mod_so.c
modules/mappers/mod_speling.c
modules/mappers/mod_vhost_alias.c
modules/metadata/mod_expires.c
modules/metadata/mod_mime_magic.c
modules/metadata/mod_setenvif.c
modules/metadata/mod_usertrack.c
modules/ssl/ssl_expr_parse.c
modules/ssl/ssl_expr_scan.c
server/config.c
server/mpm/beos/beos.c
server/mpm/mpmt_os2/mpmt_os2.c
server/mpm/mpmt_os2/mpmt_os2_child.c
server/mpm/netware/mpm_netware.c
server/mpm/winnt/child.c
server/mpm/winnt/mpm_winnt.c
test/cls.c
test/test_limits.c
test/time-sem.c

index db0d6db302fcf39bc4a471f3996f446fa89cf0e3..0d45c3a6d96bb3c3ca4ed491c6624ee862e3f326 100644 (file)
@@ -94,9 +94,9 @@ typedef struct secsocket_data secsocket_data;
 
 struct seclisten_rec {
     seclisten_rec *next;
-    struct sockaddr_in local_addr;     /* local IP address and port */
+    struct sockaddr_in local_addr;   /* local IP address and port */
     int fd;
-    int used;                              /* Only used during restart */
+    int used;                        /* Only used during restart */
     char key[MAX_KEY];
     int mutual;
     char *addr;
@@ -346,9 +346,9 @@ int convert_secure_socket(conn_rec *c, apr_socket_t *csd)
     sWS2Opts.options = &sNWTLSOpts;
 
     if (numcerts) {
-        sNWTLSOpts.walletProvider              = WAL_PROV_DER; //the wallet provider defined in wdefs.h
-        sNWTLSOpts.TrustedRootList             = certarray;    //array of certs in UNICODE format
-        sNWTLSOpts.numElementsInTRList         = numcerts;     //number of certs in TRList
+        sNWTLSOpts.walletProvider = WAL_PROV_DER;   //the wallet provider defined in wdefs.h
+        sNWTLSOpts.TrustedRootList = certarray;     //array of certs in UNICODE format
+        sNWTLSOpts.numElementsInTRList = numcerts;  //number of certs in TRList
     }
     else {
         /* setup the socket for SSL */
@@ -356,7 +356,7 @@ int convert_secure_socket(conn_rec *c, apr_socket_t *csd)
         sWS2Opts.wallet = keyFileName;    /* no client certificate */
         sWS2Opts.walletlen = unilen(keyFileName);
 
-        sNWTLSOpts.walletProvider              = WAL_PROV_KMO; //the wallet provider defined in wdefs.h
+        sNWTLSOpts.walletProvider = WAL_PROV_KMO;  //the wallet provider defined in wdefs.h
     }
 
     /* make the IOCTL call */
index efbfa40d267bb0304d1225f2d3878ed729f65020..2953138a2c2a32a2626a66f74a1cb4ec2446695c 100644 (file)
 typedef struct cache_hash_entry_t cache_hash_entry_t;
 
 struct cache_hash_entry_t {
-    cache_hash_entry_t *next;
-    unsigned int        hash;
-    const void         *key;
-    apr_ssize_t                 klen;
-    const void         *val;
+    cache_hash_entry_t   *next;
+    unsigned int         hash;
+    const void           *key;
+    apr_ssize_t          klen;
+    const void           *val;
 };
 
 /*
@@ -54,7 +54,7 @@ struct cache_hash_entry_t {
  * cache_hash_next().
  */
 struct cache_hash_index_t {
-    cache_hash_t        *ht;
+    cache_hash_t         *ht;
     cache_hash_entry_t   *this, *next;
     int                  index;
 };
index 33c32d548cd47eda5070cb63459ae24b89562213..1fa9bc1472ef65d3df497feb889a0dd438d99935 100644 (file)
@@ -1161,6 +1161,6 @@ module AP_MODULE_DECLARE_DATA disk_cache_module = {
     NULL,                       /* merge per-directory config structures */
     create_config,              /* create per-server config structure */
     NULL,                       /* merge per-server config structures */
-    disk_cache_cmds,           /* command apr_table_t */
-    disk_cache_register_hook   /* register hooks */
+    disk_cache_cmds,            /* command apr_table_t */
+    disk_cache_register_hook    /* register hooks */
 };
index c98c6437eda1e1af2f2adb93b2f84a065aa9d5f2..705dc4d73a30504a323e80d4d882c702710a6a86 100644 (file)
@@ -108,7 +108,7 @@ typedef struct {
     apr_mmap_t *mm;
 #endif
     char mtimestr[APR_RFC822_DATE_LEN];
-    char sizestr[21];  /* big enough to hold any 64-bit file size + null */
+    char sizestr[21];   /* big enough to hold any 64-bit file size + null */
 } a_file;
 
 typedef struct {
index 4258a665b406bf9b86b8d24f33af71c010065723..511ac708503c532ec014ace5980101c6e241b89f 100644 (file)
 **
 ** The value consists of a list of elements.
 **    DIRECT LOCK:     [char      (DAV_LOCK_DIRECT),
-**                     char      (dav_lock_scope),
-**                     char      (dav_lock_type),
-**                     int        depth,
-**                     time_t     expires,
-**                     apr_uuid_t locktoken,
-**                     char[]     owner,
+**                      char      (dav_lock_scope),
+**                      char      (dav_lock_type),
+**                      int        depth,
+**                      time_t     expires,
+**                      apr_uuid_t locktoken,
+**                      char[]     owner,
 **                      char[]     auth_user]
 **
 **    INDIRECT LOCK:   [char      (DAV_LOCK_INDIRECT),
-**                     apr_uuid_t locktoken,
-**                     time_t     expires,
-**                     apr_size_t key_size,
-**                     char[]     key]
+**                      apr_uuid_t locktoken,
+**                      time_t     expires,
+**                      apr_size_t key_size,
+**                      char[]     key]
 **       The key is to the collection lock that resulted in this indirect lock
 */
 
-#define DAV_TRUE               1
-#define DAV_FALSE              0
+#define DAV_TRUE                1
+#define DAV_FALSE               0
 
-#define DAV_CREATE_LIST                23
-#define DAV_APPEND_LIST                24
+#define DAV_CREATE_LIST         23
+#define DAV_APPEND_LIST         24
 
 /* Stored lock_discovery prefix */
-#define DAV_LOCK_DIRECT                1
-#define DAV_LOCK_INDIRECT      2
+#define DAV_LOCK_DIRECT         1
+#define DAV_LOCK_INDIRECT       2
 
-#define DAV_TYPE_INODE         10
-#define DAV_TYPE_FNAME         11
+#define DAV_TYPE_INODE          10
+#define DAV_TYPE_FNAME          11
 
 
 /* ack. forward declare. */
@@ -123,8 +123,8 @@ typedef struct dav_lock_discovery
     struct dav_lock_discovery_fixed f;
 
     dav_locktoken *locktoken;
-    const char *owner;         /* owner field from activelock */
-    const char *auth_user;     /* authenticated user who created the lock */
+    const char *owner;         /* owner field from activelock */
+    const char *auth_user;     /* authenticated user who created the lock */
     struct dav_lock_discovery *next;
 } dav_lock_discovery;
 
@@ -149,14 +149,14 @@ typedef struct dav_lock_indirect
 ** Stored direct lock info - full lock_discovery length:
 ** prefix + Fixed length + lock token + 2 strings + 2 nulls (one for each string)
 */
-#define dav_size_direct(a)     (1 + sizeof(dav_lock_discovery_fixed) \
+#define dav_size_direct(a)   1 + sizeof(dav_lock_discovery_fixed) \
                                  + sizeof(apr_uuid_t) \
                                  + ((a)->owner ? strlen((a)->owner) : 0) \
                                  + ((a)->auth_user ? strlen((a)->auth_user) : 0) \
                                  + 2)
 
 /* Stored indirect lock info - lock token and apr_datum_t */
-#define dav_size_indirect(a)   (1 + sizeof(apr_uuid_t) \
+#define dav_size_indirect(a)  (1 + sizeof(apr_uuid_t) \
                                  + sizeof(time_t) \
                                  + sizeof((a)->key.dsize) + (a)->key.dsize)
 
@@ -177,12 +177,12 @@ typedef struct dav_lock_indirect
 */
 struct dav_lockdb_private
 {
-    request_rec *r;                    /* for accessing the uuid state */
-    apr_pool_t *pool;                  /* a pool to use */
-    const char *lockdb_path;           /* where is the lock database? */
+    request_rec *r;                  /* for accessing the uuid state */
+    apr_pool_t *pool;                /* a pool to use */
+    const char *lockdb_path;         /* where is the lock database? */
 
-    int opened;                                /* we opened the database */
-    dav_db *db;                                /* if non-NULL, the lock database */
+    int opened;                      /* we opened the database */
+    dav_db *db;                      /* if non-NULL, the lock database */
 };
 typedef struct
 {
@@ -195,7 +195,7 @@ typedef struct
 */
 struct dav_lock_private
 {
-    apr_datum_t key;   /* key into the lock database */
+    apr_datum_t key;   /* key into the lock database */
 };
 typedef struct
 {
@@ -497,8 +497,8 @@ static dav_error * dav_fs_save_lock_record(dav_lockdb *lockdb, apr_datum_t key,
     ip  = indirect;
 
     while(dp) {
-        *ptr++ = DAV_LOCK_DIRECT;      /* Direct lock - lock_discovery struct follows */
-        memcpy(ptr, dp, sizeof(dp->f));        /* Fixed portion of struct */
+        *ptr++ = DAV_LOCK_DIRECT;   /* Direct lock - lock_discovery struct follows */
+        memcpy(ptr, dp, sizeof(dp->f));   /* Fixed portion of struct */
         ptr += sizeof(dp->f);
         memcpy(ptr, dp->locktoken, sizeof(*dp->locktoken));
         ptr += sizeof(*dp->locktoken);
@@ -521,14 +521,14 @@ static dav_error * dav_fs_save_lock_record(dav_lockdb *lockdb, apr_datum_t key,
     }
 
     while(ip) {
-        *ptr++ = DAV_LOCK_INDIRECT;    /* Indirect lock prefix */
-        memcpy(ptr, ip->locktoken, sizeof(*ip->locktoken));    /* Locktoken */
+        *ptr++ = DAV_LOCK_INDIRECT;   /* Indirect lock prefix */
+        memcpy(ptr, ip->locktoken, sizeof(*ip->locktoken));   /* Locktoken */
         ptr += sizeof(*ip->locktoken);
-        memcpy(ptr, &ip->timeout, sizeof(ip->timeout));                /* Expire time */
+        memcpy(ptr, &ip->timeout, sizeof(ip->timeout));   /* Expire time */
         ptr += sizeof(ip->timeout);
-        memcpy(ptr, &ip->key.dsize, sizeof(ip->key.dsize));    /* Size of key */
+        memcpy(ptr, &ip->key.dsize, sizeof(ip->key.dsize));   /* Size of key */
         ptr += sizeof(ip->key.dsize);
-        memcpy(ptr, ip->key.dptr, ip->key.dsize);      /* Key data */
+        memcpy(ptr, ip->key.dptr, ip->key.dsize);   /* Key data */
         ptr += ip->key.dsize;
         ip = ip->next;
     }
@@ -980,7 +980,7 @@ static dav_error * dav_fs_add_locknull_state(
     }
 
     dav_buffer_append(p, &buf, fname);
-    buf.cur_len++;     /* we want the null-term here */
+    buf.cur_len++;   /* we want the null-term here */
 
     if ((err = dav_fs_save_locknull_list(p, dirpath, &buf)) != NULL) {
         return dav_push_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,
index 65b69a9b449b82f8a9385e9d72b9e6050947a2fb..6a9b2490925ddf42b15c262287a6b843e8d4ea7c 100644 (file)
@@ -96,10 +96,10 @@ static void register_hooks(apr_pool_t *p)
 
 module AP_MODULE_DECLARE_DATA echo_module = {
     STANDARD20_MODULE_STUFF,
-    NULL,                      /* create per-directory config structure */
-    NULL,                      /* merge per-directory config structures */
-    create_echo_server_config, /* create per-server config structure */
-    NULL,                      /* merge per-server config structures */
-    echo_cmds,                 /* command apr_table_t */
-    register_hooks             /* register hooks */
+    NULL,                       /* create per-directory config structure */
+    NULL,                       /* merge per-directory config structures */
+    create_echo_server_config,  /* create per-server config structure */
+    NULL,                       /* merge per-server config structures */
+    echo_cmds,                  /* command apr_table_t */
+    register_hooks              /* register hooks */
 };
index 01004a72dbc5b5eedcfbd2e096839e5d11c7ff51..94cf9536443e2181b4338987035b4b9e4638a923 100644 (file)
@@ -136,10 +136,10 @@ static void register_hooks(apr_pool_t *p)
 module AP_MODULE_DECLARE_DATA asis_module =
 {
     STANDARD20_MODULE_STUFF,
-    NULL,                      /* create per-directory config structure */
-    NULL,                      /* merge per-directory config structures */
-    NULL,                      /* create per-server config structure */
-    NULL,                      /* merge per-server config structures */
-    NULL,                      /* command apr_table_t */
-    register_hooks             /* register hooks */
+    NULL,              /* create per-directory config structure */
+    NULL,              /* merge per-directory config structures */
+    NULL,              /* create per-server config structure */
+    NULL,              /* merge per-server config structures */
+    NULL,              /* command apr_table_t */
+    register_hooks     /* register hooks */
 };
index 080c51d9593b8cf44e3b58aa5cf7525ec0e5008b..80088f61feb2b8a5e95961419f3870f5a4e3ef42 100644 (file)
@@ -134,5 +134,5 @@ module AP_MODULE_DECLARE_DATA suexec_module =
     create_mconfig_for_server,  /* server config */
     NULL,                       /* merge server config */
     suexec_cmds,                /* command table */
-    suexec_hooks               /* register hooks */
+    suexec_hooks                /* register hooks */
 };
index 4bbb27a6bff7d93fab4770d013a115b859db7291..42e464e2e878009914b10fcb790b3943eb07f58c 100644 (file)
@@ -29,7 +29,7 @@
 #include "http_config.h"
 #include "http_connection.h"
 #include "http_core.h"
-#include "http_protocol.h"     /* For index_of_response().  Grump. */
+#include "http_protocol.h"  /* For index_of_response().  Grump. */
 #include "http_request.h"
 
 #include "util_filter.h"
index e6d75aecf00158902f54a54ff1c694aa21f709b1..14d8a1b598b8b1198d33ffa3b8682ea2b015a99b 100644 (file)
@@ -25,7 +25,7 @@
 #include "http_config.h"
 #include "http_connection.h"
 #include "http_core.h"
-#include "http_protocol.h"     /* For index_of_response().  Grump. */
+#include "http_protocol.h"   /* For index_of_response().  Grump. */
 #include "http_request.h"
 
 #include "util_filter.h"
@@ -250,10 +250,10 @@ static void register_hooks(apr_pool_t *p)
 
 module AP_MODULE_DECLARE_DATA http_module = {
     STANDARD20_MODULE_STUFF,
-    NULL,                      /* create per-directory config structure */
-    NULL,                      /* merge per-directory config structures */
-    NULL,                      /* create per-server config structure */
-    NULL,                      /* merge per-server config structures */
-    http_cmds,                 /* command apr_table_t */
-    register_hooks             /* register hooks */
+    NULL,              /* create per-directory config structure */
+    NULL,              /* merge per-directory config structures */
+    NULL,              /* create per-server config structure */
+    NULL,              /* merge per-server config structures */
+    http_cmds,         /* command apr_table_t */
+    register_hooks     /* register hooks */
 };
index 8cd955decc30bd6d38f1bc4b06557afb77eee9f8..f81e921ae1878bd6229efe4d6ca6872c6309259d 100644 (file)
@@ -25,7 +25,7 @@
 #include "http_config.h"
 #include "http_connection.h"
 #include "http_core.h"
-#include "http_protocol.h"     /* For index_of_response().  Grump. */
+#include "http_protocol.h"   /* For index_of_response().  Grump. */
 #include "http_request.h"
 
 /* Generate the human-readable hex representation of an unsigned long
index c48235b26a180e4338747283c596254915b3b170..9d7b6c5c1279901dc459035344c7e9207ecdb50f 100644 (file)
@@ -851,9 +851,9 @@ static int uldap_cache_checkuserid(request_rec *r, util_ldap_connection_t *ldc,
     char *dn;
     int count;
     int failures = 0;
-    util_url_node_t *curl;             /* Cached URL node */
+    util_url_node_t *curl;              /* Cached URL node */
     util_url_node_t curnode;
-    util_search_node_t *search_nodep;  /* Cached search node */
+    util_search_node_t *search_nodep;   /* Cached search node */
     util_search_node_t the_search_node;
     apr_time_t curtime;
 
@@ -1097,9 +1097,9 @@ static int uldap_cache_getuserdn(request_rec *r, util_ldap_connection_t *ldc,
     char *dn;
     int count;
     int failures = 0;
-    util_url_node_t *curl;             /* Cached URL node */
+    util_url_node_t *curl;              /* Cached URL node */
     util_url_node_t curnode;
-    util_search_node_t *search_nodep;  /* Cached search node */
+    util_search_node_t *search_nodep;   /* Cached search node */
     util_search_node_t the_search_node;
     apr_time_t curtime;
 
@@ -2042,10 +2042,10 @@ static void util_ldap_register_hooks(apr_pool_t *p)
 
 module AP_MODULE_DECLARE_DATA ldap_module = {
    STANDARD20_MODULE_STUFF,
-   NULL,                               /* create dir config */
-   NULL,                               /* merge dir config */
-   util_ldap_create_config,            /* create server config */
-   util_ldap_merge_config,             /* merge server config */
-   util_ldap_cmds,                     /* command table */
-   util_ldap_register_hooks,           /* set up request processing hooks */
+   NULL,                        /* create dir config */
+   NULL,                        /* merge dir config */
+   util_ldap_create_config,     /* create server config */
+   util_ldap_merge_config,      /* merge server config */
+   util_ldap_cmds,              /* command table */
+   util_ldap_register_hooks,    /* set up request processing hooks */
 };
index 643f6507d81d0b98e000a47f44ea15dfdb5540fd..dd87611b227b88bd608caaede3c726fd6d82980a 100644 (file)
@@ -212,10 +212,10 @@ static void register_hooks(apr_pool_t *p)
 module AP_MODULE_DECLARE_DATA actions_module =
 {
     STANDARD20_MODULE_STUFF,
-    create_action_dir_config,  /* dir config creater */
-    merge_action_dir_configs,  /* dir merger --- default is to override */
-    NULL,                      /* server config */
-    NULL,                      /* merge server config */
-    action_cmds,               /* command apr_table_t */
-    register_hooks             /* register hooks */
+    create_action_dir_config,   /* dir config creater */
+    merge_action_dir_configs,   /* dir merger --- default is to override */
+    NULL,                       /* server config */
+    NULL,                       /* merge server config */
+    action_cmds,                /* command apr_table_t */
+    register_hooks              /* register hooks */
 };
index 59aca9523b0d2322a53abd371370a690584a6fc0..2bbdef54cc6e35b9ba4dbec4093e49053f25d9fa 100644 (file)
@@ -299,20 +299,20 @@ static void read_quoted(char **string, char **quoted_part)
     *quoted_part = NULL;
 
     while (apr_isspace(*strp)) {
-        strp++;                /* go along string until non-whitespace */
+        strp++;                 /* go along string until non-whitespace */
     }
 
-    if (*strp == '"') {        /* if that character is a double quote */
-        strp++;                /* step over it */
-        *quoted_part = strp;   /* note where the quoted part begins */
+    if (*strp == '"') {         /* if that character is a double quote */
+        strp++;                 /* step over it */
+        *quoted_part = strp;    /* note where the quoted part begins */
 
         while (*strp && *strp != '"') {
-            ++strp;            /* skip the quoted portion */
+            ++strp;             /* skip the quoted portion */
         }
 
-        *strp = '\0';          /* end the string with a NUL */
+        *strp = '\0';           /* end the string with a NUL */
 
-        strp++;                /* step over the last double quote */
+        strp++;                 /* step over the last double quote */
         *string = strp;
     }
 }
@@ -661,20 +661,20 @@ static int imap_handler_internal(request_rec *r)
          * memory for every line of the map file
          */
         string_pos = input;
-        if (!*string_pos) {            /* need at least two fields */
+        if (!*string_pos) {   /* need at least two fields */
             goto need_2_fields;
         }
 
         directive = string_pos;
-        while (*string_pos && !apr_isspace(*string_pos)) {     /* past directive */
+        while (*string_pos && !apr_isspace(*string_pos)) {   /* past directive */
             ++string_pos;
         }
-        if (!*string_pos) {            /* need at least two fields */
+        if (!*string_pos) {   /* need at least two fields */
             goto need_2_fields;
         }
         *string_pos++ = '\0';
 
-        if (!*string_pos) {            /* need at least two fields */
+        if (!*string_pos) {   /* need at least two fields */
             goto need_2_fields;
         }
         while(*string_pos && apr_isspace(*string_pos)) { /* past whitespace */
@@ -682,7 +682,7 @@ static int imap_handler_internal(request_rec *r)
         }
 
         value = string_pos;
-        while (*string_pos && !apr_isspace(*string_pos)) {     /* past value */
+        while (*string_pos && !apr_isspace(*string_pos)) {   /* past value */
             ++string_pos;
         }
         if (apr_isspace(*string_pos)) {
index 7e23031e00cd500221d522bb53b66eaffc36c925..4173855ac342402cc141fe72f353ed5914fa2bf7 100644 (file)
@@ -422,10 +422,10 @@ static const command_rec so_cmds[] = {
 
 module AP_MODULE_DECLARE_DATA so_module = {
    STANDARD20_MODULE_STUFF,
-   NULL,                           /* create per-dir config */
-   NULL,                           /* merge per-dir config */
-   so_sconf_create,            /* server config */
-   NULL,                           /* merge server config */
-   so_cmds,                        /* command apr_table_t */
-   register_hooks          /* register hooks */
+   NULL,                 /* create per-dir config */
+   NULL,                 /* merge per-dir config */
+   so_sconf_create,      /* server config */
+   NULL,                 /* merge server config */
+   so_cmds,              /* command apr_table_t */
+   register_hooks        /* register hooks */
 };
index 4441d64efecebeedb640b8240fe0c12877dc731d..a7b9b9ff1699b045ec70014fca6f567b9b222841 100644 (file)
@@ -525,9 +525,9 @@ module AP_MODULE_DECLARE_DATA speling_module =
 {
     STANDARD20_MODULE_STUFF,
     create_mconfig_for_directory,  /* create per-dir config */
-    NULL,                       /* merge per-dir config */
-    create_mconfig_for_server,  /* server config */
-    NULL,                       /* merge server config */
-    speling_cmds,               /* command apr_table_t */
-    register_hooks             /* register hooks */
+    NULL,                          /* merge per-dir config */
+    create_mconfig_for_server,     /* server config */
+    NULL,                          /* merge server config */
+    speling_cmds,                  /* command apr_table_t */
+    register_hooks                 /* register hooks */
 };
index 4d3e1c823e2ce090999a204ed7b476d4ed688dcd..e72c87e89aade9e40252ebef4d69aff155051419 100644 (file)
@@ -447,11 +447,11 @@ static void register_hooks(apr_pool_t *p)
 module AP_MODULE_DECLARE_DATA vhost_alias_module =
 {
     STANDARD20_MODULE_STUFF,
-    NULL,                      /* dir config creater */
-    NULL,                      /* dir merger --- default is to override */
-    mva_create_server_config,  /* server config */
-    mva_merge_server_config,   /* merge server configs */
-    mva_commands,              /* command apr_table_t */
+    NULL,                       /* dir config creater */
+    NULL,                       /* dir merger --- default is to override */
+    mva_create_server_config,   /* server config */
+    mva_merge_server_config,    /* merge server configs */
+    mva_commands,               /* command apr_table_t */
     register_hooks              /* register hooks */
 };
 
index f2e91fcf1992f0a6d469577e03462ed539706d96..fe2d93ef542a9352a95bcb634766a4d1fdda4cd1 100644 (file)
@@ -559,5 +559,5 @@ module AP_MODULE_DECLARE_DATA expires_module =
     NULL,                       /* server config */
     NULL,                       /* merge server configs */
     expires_cmds,               /* command apr_table_t */
-    register_hooks             /* register hooks */
+    register_hooks              /* register hooks */
 };
index faaea0ec3558c2a7bf936ba915c0c6f264573aeb..b02c1876a19301f4ba705be978feac283ba4264a 100644 (file)
 #define MAXMIMESTRING        256
 
 /* HOWMANY must be at least 4096 to make gzip -dcq work */
-#define HOWMANY        4096
+#define HOWMANY  4096
 /* SMALL_HOWMANY limits how much work we do to figure out text files */
 #define SMALL_HOWMANY 1024
-#define MAXDESC    50          /* max leng of text description */
-#define MAXstring 64           /* max leng of "string" types */
+#define MAXDESC    50   /* max leng of text description */
+#define MAXstring 64    /* max leng of "string" types */
 
 struct magic {
-    struct magic *next;                /* link to next entry */
-    int lineno;                        /* line number from magic file */
+    struct magic *next;     /* link to next entry */
+    int lineno;             /* line number from magic file */
 
     short flag;
-#define INDIR    1             /* if '>(...)' appears,  */
-#define    UNSIGNED 2          /* comparison is unsigned */
-    short cont_level;          /* level of ">" */
+#define INDIR  1            /* if '>(...)' appears,  */
+#define UNSIGNED 2          /* comparison is unsigned */
+    short cont_level;       /* level of ">" */
     struct {
-        char type;             /* byte short long */
-        long offset;           /* offset from indirection */
+        char type;          /* byte short long */
+        long offset;        /* offset from indirection */
     } in;
-    long offset;               /* offset to magic number */
-    unsigned char reln;                /* relation (0=eq, '>'=gt, etc) */
-    char type;                 /* int, short, long or string. */
-    char vallen;               /* length of string value, if any */
-#define BYTE    1
-#define SHORT    2
-#define LONG    4
+    long offset;            /* offset to magic number */
+    unsigned char reln;     /* relation (0=eq, '>'=gt, etc) */
+    char type;              /* int, short, long or string. */
+    char vallen;            /* length of string value, if any */
+#define BYTE      1
+#define SHORT     2
+#define LONG      4
 #define STRING    5
-#define DATE    6
-#define BESHORT    7
+#define DATE      6
+#define BESHORT   7
 #define BELONG    8
 #define BEDATE    9
-#define LESHORT    10
-#define LELONG    11
-#define LEDATE    12
+#define LESHORT  10
+#define LELONG   11
+#define LEDATE   12
     union VALUETYPE {
         unsigned char b;
         unsigned short h;
         unsigned long l;
         char s[MAXstring];
-        unsigned char hs[2];   /* 2 bytes of a fixed-endian "short" */
-        unsigned char hl[4];   /* 2 bytes of a fixed-endian "long" */
-    } value;                   /* either number or string */
-    unsigned long mask;                /* mask before comparison with value */
-    char nospflag;             /* supress space character */
+        unsigned char hs[2];   /* 2 bytes of a fixed-endian "short" */
+        unsigned char hl[4];   /* 2 bytes of a fixed-endian "long" */
+    } value;                   /* either number or string */
+    unsigned long mask;        /* mask before comparison with value */
+    char nospflag;             /* supress space character */
 
     /* NOTE: this string is suspected of overrunning - find it! */
-    char desc[MAXDESC];                /* description */
+    char desc[MAXDESC];        /* description */
 };
 
 /*
@@ -207,7 +207,7 @@ union record {
 };
 
 /* The magic field is filled with this if uname and gname are valid. */
-#define    TMAGIC        "ustar  "     /* 7 chars and a null */
+#define    TMAGIC        "ustar  "   /* 7 chars and a null */
 
 /*
  * file-function prototypes
@@ -246,30 +246,30 @@ static int fsmagic(request_rec *r, const char *fn);
 
 /* these types are used to index the apr_table_t 'types': keep em in sync! */
 /* HTML inserted in first because this is a web server module now */
-#define L_HTML    0            /* HTML */
-#define L_C       1            /* first and foremost on UNIX */
-#define L_FORT    2            /* the oldest one */
-#define L_MAKE    3            /* Makefiles */
-#define L_PLI     4            /* PL/1 */
-#define L_MACH    5            /* some kinda assembler */
-#define L_ENG     6            /* English */
-#define L_PAS     7            /* Pascal */
-#define L_MAIL    8            /* Electronic mail */
-#define L_NEWS    9            /* Usenet Netnews */
+#define L_HTML    0   /* HTML */
+#define L_C       1   /* first and foremost on UNIX */
+#define L_FORT    2   /* the oldest one */
+#define L_MAKE    3   /* Makefiles */
+#define L_PLI     4   /* PL/1 */
+#define L_MACH    5   /* some kinda assembler */
+#define L_ENG     6   /* English */
+#define L_PAS     7   /* Pascal */
+#define L_MAIL    8   /* Electronic mail */
+#define L_NEWS    9   /* Usenet Netnews */
 
 static char *types[] =
 {
-    "text/html",               /* HTML */
-    "text/plain",              /* "c program text", */
-    "text/plain",              /* "fortran program text", */
-    "text/plain",              /* "make commands text", */
-    "text/plain",              /* "pl/1 program text", */
-    "text/plain",              /* "assembler program text", */
-    "text/plain",              /* "English text", */
-    "text/plain",              /* "pascal program text", */
-    "message/rfc822",          /* "mail text", */
-    "message/news",            /* "news text", */
-    "application/binary",      /* "can't happen error on names.h/types", */
+    "text/html",             /* HTML */
+    "text/plain",            /* "c program text", */
+    "text/plain",            /* "fortran program text", */
+    "text/plain",            /* "make commands text", */
+    "text/plain",            /* "pl/1 program text", */
+    "text/plain",            /* "assembler program text", */
+    "text/plain",            /* "English text", */
+    "text/plain",            /* "pascal program text", */
+    "message/rfc822",        /* "mail text", */
+    "message/news",          /* "news text", */
+    "application/binary",    /* "can't happen error on names.h/types", */
     0
 };
 
@@ -312,7 +312,7 @@ static struct names {
     },
     {
         "/*", L_C
-    },                         /* must precede "The", "the", etc. */
+    },               /* must precede "The", "the", etc. */
     {
         "#include", L_C
     },
@@ -443,8 +443,8 @@ static struct names {
  */
 
 typedef struct magic_rsl_s {
-    char *str;                 /* string, possibly a fragment */
-    struct magic_rsl_s *next;  /* pointer to next fragment */
+    char *str;                  /* string, possibly a fragment */
+    struct magic_rsl_s *next;   /* pointer to next fragment */
 } magic_rsl;
 
 /*
@@ -453,16 +453,16 @@ typedef struct magic_rsl_s {
 
 /* per-server info */
 typedef struct {
-    const char *magicfile;             /* where magic be found */
-    struct magic *magic;       /* head of magic config list */
+    const char *magicfile;    /* where magic be found */
+    struct magic *magic;      /* head of magic config list */
     struct magic *last;
 } magic_server_config_rec;
 
 /* per-request info */
 typedef struct {
-    magic_rsl *head;           /* result string list */
+    magic_rsl *head;          /* result string list */
     magic_rsl *tail;
-    unsigned suf_recursion;    /* recursion depth in suffix check */
+    unsigned suf_recursion;   /* recursion depth in suffix check */
 } magic_req_rec;
 
 /*
@@ -612,11 +612,11 @@ static int magic_rsl_putchar(request_rec *r, char c)
 /* allocate and copy a contiguous string from a result string list */
 static char *rsl_strdup(request_rec *r, int start_frag, int start_pos, int len)
 {
-    char *result;              /* return value */
-    int cur_frag,              /* current fragment number/counter */
-        cur_pos,               /* current position within fragment */
-        res_pos;               /* position in result string */
-    magic_rsl *frag;           /* list-traversal pointer */
+    char *result;       /* return value */
+    int cur_frag,       /* current fragment number/counter */
+        cur_pos,        /* current position within fragment */
+        res_pos;        /* position in result string */
+    magic_rsl *frag;    /* list-traversal pointer */
     magic_req_rec *req_dat = (magic_req_rec *)
                     ap_get_module_config(r->request_config, &mime_magic_module);
 
@@ -664,16 +664,16 @@ typedef enum {
 /* process the RSL and set the MIME info in the request record */
 static int magic_rsl_to_request(request_rec *r)
 {
-    int cur_frag,              /* current fragment number/counter */
-        cur_pos,               /* current position within fragment */
-        type_frag,             /* content type starting point: fragment */
-        type_pos,              /* content type starting point: position */
-        type_len,              /* content type length */
-        encoding_frag,         /* content encoding starting point: fragment */
-        encoding_pos,          /* content encoding starting point: position */
-        encoding_len;          /* content encoding length */
-
-    magic_rsl *frag;           /* list-traversal pointer */
+    int cur_frag,         /* current fragment number/counter */
+        cur_pos,          /* current position within fragment */
+        type_frag,        /* content type starting point: fragment */
+        type_pos,         /* content type starting point: position */
+        type_len,         /* content type length */
+        encoding_frag,    /* content encoding starting point: fragment */
+        encoding_pos,     /* content encoding starting point: position */
+        encoding_len;     /* content encoding length */
+
+    magic_rsl *frag;      /* list-traversal pointer */
     rsl_states state;
 
     magic_req_rec *req_dat = (magic_req_rec *)
@@ -825,8 +825,8 @@ static int magic_rsl_to_request(request_rec *r)
 static int magic_process(request_rec *r)
 {
     apr_file_t *fd = NULL;
-    unsigned char buf[HOWMANY + 1];    /* one extra for terminating '\0' */
-    apr_size_t nbytes = 0;             /* number of bytes read from a datafile */
+    unsigned char buf[HOWMANY + 1];  /* one extra for terminating '\0' */
+    apr_size_t nbytes = 0;           /* number of bytes read from a datafile */
     int result;
 
     /*
@@ -865,7 +865,7 @@ static int magic_process(request_rec *r)
         return DECLINED;
     }
     else {
-        buf[nbytes++] = '\0';  /* null-terminate it */
+        buf[nbytes++] = '\0';  /* null-terminate it */
         result = tryit(r, buf, nbytes, 1);
         if (result != OK) {
             return result;
@@ -1090,12 +1090,12 @@ static int parse(server_rec *serv, apr_pool_t *p, char *l, int lineno)
     m->lineno = lineno;
 
     while (*l == '>') {
-        ++l;                   /* step over */
+        ++l;  /* step over */
         m->cont_level++;
     }
 
     if (m->cont_level != 0 && *l == '(') {
-        ++l;                   /* step over */
+        ++l;  /* step over */
         m->flag |= INDIR;
     }
 
@@ -1250,7 +1250,7 @@ static int parse(server_rec *serv, apr_pool_t *p, char *l, int lineno)
         if (*l == 'x' && apr_isspace(l[1])) {
             m->reln = *l;
             ++l;
-            goto GetDesc;      /* Bill The Cat */
+            goto GetDesc;  /* Bill The Cat */
         }
         m->reln = '=';
         break;
@@ -1370,10 +1370,10 @@ static char *getstr(server_rec *serv, register char *s, register char *p,
             case '6':
             case '7':
                 val = c - '0';
-                c = *s++;      /* try for 2 */
+                c = *s++;  /* try for 2 */
                 if (c >= '0' && c <= '7') {
                     val = (val << 3) | (c - '0');
-                    c = *s++;  /* try for 3 */
+                    c = *s++;  /* try for 3 */
                     if (c >= '0' && c <= '7')
                         val = (val << 3) | (c - '0');
                     else
@@ -1386,8 +1386,8 @@ static char *getstr(server_rec *serv, register char *s, register char *p,
 
                 /* \x and up to 3 hex digits */
             case 'x':
-                val = 'x';     /* Default if no digits */
-                c = hextoint(*s++);    /* Get next char */
+                val = 'x';            /* Default if no digits */
+                c = hextoint(*s++);   /* Get next char */
                 if (c >= 0) {
                     val = c;
                     c = hextoint(*s++);
@@ -1684,13 +1684,13 @@ static int match(request_rec *r, unsigned char *s, apr_size_t nbytes)
         ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
                     MODNAME ": matched after %d rules", rule_counter);
 #endif
-        return 1;              /* all through */
+        return 1;  /* all through */
     }
 #if MIME_MAGIC_DEBUG
     ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
                 MODNAME ": failed after %d rules", rule_counter);
 #endif
-    return 0;                  /* no match at all */
+    return 0;  /* no match at all */
 }
 
 static void mprint(request_rec *r, union VALUETYPE *p, struct magic *m)
@@ -1977,7 +1977,7 @@ static int ascmagic(request_rec *r, unsigned char *buf, apr_size_t nbytes)
 {
     int has_escapes = 0;
     unsigned char *s;
-    char nbuf[HOWMANY + 1];    /* one extra for terminating '\0' */
+    char nbuf[HOWMANY + 1];  /* one extra for terminating '\0' */
     char *token;
     register struct names *p;
     int small_nbytes;
@@ -1994,7 +1994,7 @@ static int ascmagic(request_rec *r, unsigned char *buf, apr_size_t nbytes)
         unsigned char *tp = buf + 1;
 
         while (apr_isspace(*tp))
-            ++tp;              /* skip leading whitespace */
+            ++tp;  /* skip leading whitespace */
         if ((apr_isalnum(*tp) || *tp == '\\') &&
              (apr_isalnum(*(tp + 1)) || *tp == '"')) {
             magic_rsl_puts(r, "application/x-troff");
@@ -2015,7 +2015,7 @@ static int ascmagic(request_rec *r, unsigned char *buf, apr_size_t nbytes)
     s[small_nbytes] = '\0';
     has_escapes = (memchr(s, '\033', small_nbytes) != NULL);
     while ((token = apr_strtok((char *) s, " \t\n\r\f", &strtok_state)) != NULL) {
-        s = NULL;              /* make apr_strtok() keep on tokin' */
+        s = NULL;  /* make apr_strtok() keep on tokin' */
         for (p = names; p < names + NNAMES; p++) {
             if (STREQ(p->name, token)) {
                 magic_rsl_puts(r, types[p->type]);
@@ -2053,7 +2053,7 @@ static struct {
     apr_size_t maglen;
     char *argv[3];
     int silent;
-    char *encoding;    /* MUST be lowercase */
+    char *encoding;  /* MUST be lowercase */
 } compr[] = {
 
     /* we use gzip here rather than uncompress because we have to pass
@@ -2252,12 +2252,12 @@ static int is_tar(unsigned char *buf, apr_size_t nbytes)
     sum += ' ' * sizeof header->header.chksum;
 
     if (sum != recsum)
-        return 0;              /* Not a tar archive */
+        return 0;   /* Not a tar archive */
 
     if (0 == strcmp(header->header.magic, TMAGIC))
-        return 2;              /* Unix Standard tar archive */
+        return 2;   /* Unix Standard tar archive */
 
-    return 1;                  /* Old fashioned tar archive */
+    return 1;       /* Old fashioned tar archive */
 }
 
 
@@ -2270,19 +2270,19 @@ static long from_oct(int digs, char *where)
 {
     register long value;
 
-    while (apr_isspace(*where)) {      /* Skip spaces */
+    while (apr_isspace(*where)) {  /* Skip spaces */
         where++;
         if (--digs <= 0)
-            return -1;         /* All blank field */
+            return -1;  /* All blank field */
     }
     value = 0;
-    while (digs > 0 && isodigit(*where)) {     /* Scan til nonoctal */
+    while (digs > 0 && isodigit(*where)) {  /* Scan til nonoctal */
         value = (value << 3) | (*where++ - '0');
         --digs;
     }
 
     if (digs > 0 && *where && !apr_isspace(*where))
-        return -1;             /* Ended on non-space/nul */
+        return -1;  /* Ended on non-space/nul */
 
     return value;
 }
index c28fc1c0216eba275e57b7a66ccbd14cb16952ed..b817bc044f1b2fc7bdb4d11abafc028b2e0bf366 100644 (file)
@@ -50,8 +50,8 @@
  *
  * Special values for 'name' are:
  *
- *   server_addr       IP address of interface on which request arrived
- *                     (analogous to SERVER_ADDR set in ap_add_common_vars())
+ *   server_addr        IP address of interface on which request arrived
+ *                      (analogous to SERVER_ADDR set in ap_add_common_vars())
  *   remote_host        Remote host name (if available)
  *   remote_addr        Remote IP address
  *   request_method     Request method (GET, POST, etc)
@@ -166,7 +166,7 @@ static void *merge_setenvif_config(apr_pool_t *p, void *basev, void *overridesv)
  * any non-NULL magic constant will do... used to indicate if AP_REG_ICASE should
  * be used
  */
-#define ICASE_MAGIC    ((void *)(&setenvif_module))
+#define ICASE_MAGIC  ((void *)(&setenvif_module))
 #define SEI_MAGIC_HEIRLOOM "setenvif-phase-flag"
 
 static int is_header_regex(apr_pool_t *p, const char* name)
@@ -651,5 +651,5 @@ module AP_MODULE_DECLARE_DATA setenvif_module =
     create_setenvif_config_svr, /* server config */
     merge_setenvif_config,      /* merge server configs */
     setenvif_module_cmds,       /* command apr_table_t */
-    register_hooks             /* register hooks */
+    register_hooks              /* register hooks */
 };
index a7dd1a21c73ab432539006de1c9602e6be6d1c2e..8c642a14add0ac9f26231ff1ab7b6f9ee3de2b78 100644 (file)
@@ -449,5 +449,5 @@ module AP_MODULE_DECLARE_DATA usertrack_module = {
     make_cookie_log_state,      /* server config */
     NULL,                       /* merge server configs */
     cookie_log_cmds,            /* command apr_table_t */
-    register_hooks             /* register hooks */
+    register_hooks              /* register hooks */
 };
index d1efa59c94ce7eb16033c60998482955267b8cf6..7d8c4ab1061121c1c814046f5a90d14dbfa7ac0c 100644 (file)
@@ -274,22 +274,22 @@ static int ssl_expr_yygrowstack()
 #if defined(__cplusplus) || __STDC__
 #define YYPARSE_PARAM_ARG void
 #define YYPARSE_PARAM_DECL
-#else  /* ! ANSI-C/C++ */
+#else  /* ! ANSI-C/C++ */
 #define YYPARSE_PARAM_ARG
 #define YYPARSE_PARAM_DECL
-#endif /* ANSI-C/C++ */
-#else  /* YYPARSE_PARAM */
+#endif  /* ANSI-C/C++ */
+#else   /* YYPARSE_PARAM */
 #ifndef YYPARSE_PARAM_TYPE
 #define YYPARSE_PARAM_TYPE void *
 #endif
 #if defined(__cplusplus) || __STDC__
 #define YYPARSE_PARAM_ARG YYPARSE_PARAM_TYPE YYPARSE_PARAM
 #define YYPARSE_PARAM_DECL
-#else  /* ! ANSI-C/C++ */
+#else  /* ! ANSI-C/C++ */
 #define YYPARSE_PARAM_ARG YYPARSE_PARAM
 #define YYPARSE_PARAM_DECL YYPARSE_PARAM_TYPE YYPARSE_PARAM;
-#endif /* ANSI-C/C++ */
-#endif /* ! YYPARSE_PARAM */
+#endif  /* ANSI-C/C++ */
+#endif  /* ! YYPARSE_PARAM */
 
 int
 ssl_expr_yyparse (YYPARSE_PARAM_ARG)
index 7d7bb85fd38d043f892d174e25e7af6f6afbfd41..f3b5ad23a8761eff4e35c7c26808df3da44c6ba7 100644 (file)
 /* The "const" storage-class-modifier is valid. */
 #define YY_USE_CONST
 
-#else  /* ! __cplusplus */
+#else  /* ! __cplusplus */
 
 #if __STDC__
 
 #define YY_USE_PROTOS
 #define YY_USE_CONST
 
-#endif /* __STDC__ */
-#endif /* ! __cplusplus */
+#endif  /* __STDC__ */
+#endif  /* ! __cplusplus */
 
 #ifdef __TURBOC__
  #pragma warn -rch
@@ -126,10 +126,10 @@ extern FILE *yyin, *yyout;
  * int a single C statement (which needs a semi-colon terminator).  This
  * avoids problems with code like:
  *
- *     if ( condition_holds )
- *             yyless( 5 );
- *     else
- *             do_something_else();
+ *    if ( condition_holds )
+ *       yyless( 5 );
+ *    else
+ *       do_something_else();
  *
  * Prior to using the do-while the compiler would get upset at the
  * "else" because it interpreted the "if" statement as being all
@@ -162,8 +162,8 @@ struct yy_buffer_state
         {
         FILE *yy_input_file;
 
-        char *yy_ch_buf;               /* input buffer */
-        char *yy_buf_pos;              /* current position in input buffer */
+        char *yy_ch_buf;    /* input buffer */
+        char *yy_buf_pos;   /* current position in input buffer */
 
         /* Size of input buffer in bytes, not including room for EOB
          * characters.
@@ -227,15 +227,15 @@ static YY_BUFFER_STATE yy_current_buffer = 0;
 /* yy_hold_char holds the character lost when yytext is formed. */
 static char yy_hold_char;
 
-static int yy_n_chars;         /* number of characters read into yy_ch_buf */
+static int yy_n_chars;  /* number of characters read into yy_ch_buf */
 
 
 int yyleng;
 
 /* Points to current character in buffer. */
 static char *yy_c_buf_p = (char *) 0;
-static int yy_init = 1;                /* whether we need to initialize */
-static int yy_start = 0;       /* start state number */
+static int yy_init = 1;   /* whether we need to initialize */
+static int yy_start = 0;  /* start state number */
 
 /* Flag which is used to allow yywrap()'s to do buffer switches
  * instead of setting up a fresh yyin.  A bit of a hack ...
@@ -686,7 +686,7 @@ YY_DECL
 #endif
 
                 if ( ! yy_start )
-                        yy_start = 1;  /* first start state */
+                        yy_start = 1;  /* first start state */
 
                 if ( ! yyin )
                         yyin = stdin;
@@ -701,7 +701,7 @@ YY_DECL
                 yy_load_buffer_state();
                 }
 
-        while ( 1 )            /* loops until end-of-file is reached */
+        while ( 1 )  /* loops until end-of-file is reached */
                 {
                 yy_cp = yy_c_buf_p;
 
@@ -742,7 +742,7 @@ yy_find_action:
                 YY_DO_BEFORE_ACTION;
 
 
-do_action:     /* This label is used only to access EOF actions. */
+do_action:  /* This label is used only to access EOF actions. */
 
 
                 switch ( yy_act )
@@ -1220,9 +1220,9 @@ case YY_STATE_EOF(regex):
 /* yy_get_next_buffer - try to read in a new buffer
  *
  * Returns a code representing an action:
- *     EOB_ACT_LAST_MATCH -
- *     EOB_ACT_CONTINUE_SCAN - continue scanning from current position
- *     EOB_ACT_END_OF_FILE - end of file
+ *   EOB_ACT_LAST_MATCH -
+ *   EOB_ACT_CONTINUE_SCAN - continue scanning from current position
+ *   EOB_ACT_END_OF_FILE - end of file
  */
 
 static int yy_get_next_buffer()
@@ -1388,7 +1388,7 @@ static yy_state_type yy_get_previous_state()
 /* yy_try_NUL_trans - try to make a transition on the NUL character
  *
  * synopsis
- *     next_state = yy_try_NUL_trans( current_state );
+ *   next_state = yy_try_NUL_trans( current_state );
  */
 
 #ifdef YY_USE_PROTOS
@@ -1462,7 +1462,7 @@ register char *yy_bp;
         yy_hold_char = *yy_cp;
         yy_c_buf_p = yy_cp;
         }
-#endif /* ifndef YY_NO_UNPUT */
+#endif  /* ifndef YY_NO_UNPUT */
 
 
 #ifdef __cplusplus
@@ -1529,8 +1529,8 @@ static int input()
                         }
                 }
 
-        c = *(unsigned char *) yy_c_buf_p;     /* cast for 8-bit char's */
-        *yy_c_buf_p = '\0';    /* preserve yytext */
+        c = *(unsigned char *) yy_c_buf_p;  /* cast for 8-bit char's */
+        *yy_c_buf_p = '\0';  /* preserve yytext */
         yy_hold_char = *++yy_c_buf_p;
 
 
@@ -1731,7 +1731,7 @@ yy_size_t size;
         if ( ! b )
                 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
 
-        b->yy_buf_size = size - 2;     /* "- 2" to take care of EOB's */
+        b->yy_buf_size = size - 2;  /* "- 2" to take care of EOB's */
         b->yy_buf_pos = b->yy_ch_buf = base;
         b->yy_is_our_buffer = 0;
         b->yy_input_file = 0;
index a36a01dd503d8bfa71e538e5b9057f0d766af0db..1fc56cf519b24d0b95fa8ff0e19636939293cac0 100644 (file)
@@ -46,8 +46,8 @@
 #include "http_config.h"
 #include "http_protocol.h"
 #include "http_core.h"
-#include "http_log.h"          /* for errors in parse_htaccess */
-#include "http_request.h"      /* for default_handler (see invoke_handler) */
+#include "http_log.h"      /* for errors in parse_htaccess */
+#include "http_request.h"  /* for default_handler (see invoke_handler) */
 #include "http_main.h"
 #include "http_vhost.h"
 #include "util_cfgtree.h"
index b813ff53eb1c3cbfb695cf7d72613caf48e0aeec..888c7c0279827385e3860e3f094fd704d567b4cf 100644 (file)
@@ -43,8 +43,8 @@
 #include "httpd.h"
 #include "http_main.h"
 #include "http_log.h"
-#include "http_config.h"       /* for read_config */
-#include "http_core.h"         /* for get_remote_host */
+#include "http_config.h"        /* for read_config */
+#include "http_core.h"          /* for get_remote_host */
 #include "http_connection.h"
 #include "ap_mpm.h"
 #include "beosd.h"
@@ -101,7 +101,7 @@ static int num_listening_sockets = 0;
 static int mpm_state = AP_MPMQ_STARTING;
 apr_thread_mutex_t *accept_mutex = NULL;
 
-static apr_pool_t *pconf;              /* Pool for config stuff */
+static apr_pool_t *pconf;    /* Pool for config stuff */
 
 static int server_pid;
 
@@ -678,7 +678,7 @@ static void startup_threads(int number_to_start)
  */
 static int spawn_rate = 1;
 #ifndef MAX_SPAWN_RATE
-#define MAX_SPAWN_RATE (32)
+#define MAX_SPAWN_RATE  (32)
 #endif
 static int hold_off_on_exponential_spawning;
 
@@ -1010,7 +1010,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
          * pthreads are stealing signals from us left and right.
          */
 
-        ap_reclaim_child_processes(1);         /* Start with SIGTERM */
+        ap_reclaim_child_processes(1);   /* Start with SIGTERM */
             ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf,
                     "SIGHUP received.  Attempting to restart");
     }
@@ -1196,12 +1196,12 @@ AP_INIT_TAKE1( "MaxRequestsPerThread", set_max_requests_per_thread, NULL, RSRC_C
 
 module AP_MODULE_DECLARE_DATA mpm_beos_module = {
     MPM20_MODULE_STUFF,
-    NULL,                       /* hook to run before apache parses args */
-    NULL,                      /* create per-directory config structure */
-    NULL,                      /* merge per-directory config structures */
-    NULL,                      /* create per-server config structure */
-    NULL,                      /* merge per-server config structures */
-    beos_cmds,         /* command apr_table_t */
-    beos_hooks         /* register_hooks */
+    NULL,          /* hook to run before apache parses args */
+    NULL,          /* create per-directory config structure */
+    NULL,          /* merge per-directory config structures */
+    NULL,          /* create per-server config structure */
+    NULL,          /* merge per-server config structures */
+    beos_cmds,     /* command apr_table_t */
+    beos_hooks     /* register_hooks */
 };
 
index 44e8e480f73f1f4fb9b14066e8ecaf00f6e1f007..f330743bdeca2f5609f8a02d3ba2d3509b372cbe 100644 (file)
@@ -47,7 +47,7 @@
 #include "http_main.h"
 #include "http_log.h"
 #include "http_config.h"
-#include "http_core.h"         /* for get_remote_host */
+#include "http_core.h"  /* for get_remote_host */
 #include "http_connection.h"
 #include "mpm.h"
 #include "ap_mpm.h"
@@ -70,7 +70,7 @@
 #endif
 
 server_rec *ap_server_conf;
-static apr_pool_t *pconf = NULL;               /* Pool for config stuff */
+static apr_pool_t *pconf = NULL;  /* Pool for config stuff */
 static const char *ap_pid_fname=NULL;
 
 /* Config globals */
@@ -567,11 +567,11 @@ AP_INIT_TAKE1("ScoreBoardFile", ignore_cmd, NULL, RSRC_CONF, \
 
 module AP_MODULE_DECLARE_DATA mpm_mpmt_os2_module = {
     MPM20_MODULE_STUFF,
-    NULL,                       /* hook to run before apache parses args */
-    NULL,                      /* create per-directory config structure */
-    NULL,                      /* merge per-directory config structures */
-    NULL,                      /* create per-server config structure */
-    NULL,                      /* merge per-server config structures */
-    mpmt_os2_cmds,             /* command apr_table_t */
-    mpmt_os2_hooks,            /* register_hooks */
+    NULL,            /* hook to run before apache parses args */
+    NULL,            /* create per-directory config structure */
+    NULL,            /* merge per-directory config structures */
+    NULL,            /* create per-server config structure */
+    NULL,            /* merge per-server config structures */
+    mpmt_os2_cmds,   /* command apr_table_t */
+    mpmt_os2_hooks,  /* register_hooks */
 };
index 3aef26b4728d9f6909ffc063941908e941f5b6b0..0c4e5a9cd744600c882e15ddef048f50c45de4ea 100644 (file)
@@ -25,7 +25,7 @@
 #include "http_main.h"
 #include "http_log.h"
 #include "http_config.h"
-#include "http_core.h"         /* for get_remote_host */
+#include "http_core.h"  /* for get_remote_host */
 #include "http_connection.h"
 #include "mpm.h"
 #include "ap_mpm.h"
index b30ceec8b7d45de824e805e49d81db3f136156de..e576c0626d96b803c415012b5e50a1ea0601d71d 100644 (file)
@@ -884,7 +884,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
     apr_pool_create(&pmain, pconf);
     ap_run_child_init(pmain, ap_server_conf);
 
-    if (ap_threads_max_free < ap_threads_min_free + 1) /* Don't thrash... */
+    if (ap_threads_max_free < ap_threads_min_free + 1)  /* Don't thrash... */
         ap_threads_max_free = ap_threads_min_free + 1;
     request_count = 0;
 
@@ -1282,10 +1282,10 @@ AP_INIT_TAKE1("MaxThreads", set_thread_limit, NULL, RSRC_CONF,
 module AP_MODULE_DECLARE_DATA mpm_netware_module = {
     MPM20_MODULE_STUFF,
     netware_rewrite_args,   /* hook to run before apache parses args */
-    NULL,                              /* create per-directory config structure */
-    NULL,                              /* merge per-directory config structures */
-    NULL,                              /* create per-server config structure */
-    NULL,                              /* merge per-server config structures */
+    NULL,                   /* create per-directory config structure */
+    NULL,                   /* merge per-directory config structures */
+    NULL,                   /* create per-server config structure */
+    NULL,                   /* merge per-server config structures */
     netware_mpm_cmds,       /* command apr_table_t */
     netware_mpm_hooks,      /* register hooks */
 };
index abb2bb7fd79cad1b52dbdf8edfe5024be99d5706..b2a64e32b4b435dea8047f51d4510a0d1400336d 100644 (file)
@@ -20,8 +20,8 @@
 #include "httpd.h"
 #include "http_main.h"
 #include "http_log.h"
-#include "http_config.h"       /* for read_config */
-#include "http_core.h"         /* for get_remote_host */
+#include "http_config.h"  /* for read_config */
+#include "http_core.h"    /* for get_remote_host */
 #include "http_connection.h"
 #include "apr_portable.h"
 #include "apr_thread_proc.h"
index 3c8bc9ec63c21453dc786340edc3454b55fd707d..44b294393784d59ca5ec40d1500367768a6bbaa7 100644 (file)
@@ -20,8 +20,8 @@
 #include "httpd.h"
 #include "http_main.h"
 #include "http_log.h"
-#include "http_config.h"       /* for read_config */
-#include "http_core.h"         /* for get_remote_host */
+#include "http_config.h" /* for read_config */
+#include "http_core.h"   /* for get_remote_host */
 #include "http_connection.h"
 #include "apr_portable.h"
 #include "apr_thread_proc.h"
@@ -47,8 +47,8 @@ extern apr_shm_t *ap_scoreboard_shm;
 server_rec *ap_server_conf;
 
 /* Definitions of WINNT MPM specific config globals */
-static HANDLE shutdown_event;  /* used to signal the parent to shutdown */
-static HANDLE restart_event;   /* used to signal the parent to restart */
+static HANDLE shutdown_event;  /* used to signal the parent to shutdown */
+static HANDLE restart_event;   /* used to signal the parent to restart */
 
 static char ap_coredump_dir[MAX_STRING_LEN];
 
@@ -1712,13 +1712,13 @@ static void winnt_hooks(apr_pool_t *p)
 
 AP_MODULE_DECLARE_DATA module mpm_winnt_module = {
     MPM20_MODULE_STUFF,
-    winnt_rewrite_args,         /* hook to run before apache parses args */
-    NULL,                      /* create per-directory config structure */
-    NULL,                      /* merge per-directory config structures */
-    NULL,                      /* create per-server config structure */
-    NULL,                      /* merge per-server config structures */
-    winnt_cmds,                        /* command apr_table_t */
-    winnt_hooks                /* register_hooks */
+    winnt_rewrite_args,    /* hook to run before apache parses args */
+    NULL,                  /* create per-directory config structure */
+    NULL,                  /* merge per-directory config structures */
+    NULL,                  /* create per-server config structure */
+    NULL,                  /* merge per-server config structures */
+    winnt_cmds,            /* command apr_table_t */
+    winnt_hooks            /* register_hooks */
 };
 
 #endif /* def WIN32 */
index d11e2a4147d08d160ca60b9e131c0cdbe759495b..9c7aa833ff3f8d139f624506810192b1e474fa3a 100644 (file)
@@ -82,7 +82,7 @@ static int hex2sec(const char *x)
             j |= ch - ('a' - 10);
     }
     if (j == 0xffffffff)
-        return -1;             /* so that it works with 8-byte ints */
+        return -1;  /* so that it works with 8-byte ints */
     else
         return j;
 }
index aa51d53c2c14b5b41b40f06cd8bd1878d914f49a..e2b5285f77a2a3933736f5df4e30e561b956d4f8 100644 (file)
@@ -14,7 +14,7 @@
  *
  *
  * Message-ID: <861zqspvtw.fsf@niobe.ewox.org>
- * Date:       Fri, 7 Aug 1998 19:04:27 +0200
+ * Date: Fri, 7 Aug 1998 19:04:27 +0200
  * Sender: Bugtraq List <BUGTRAQ@netspace.org>
  * From: Dag-Erling Coidan =?ISO-8859-1?Q?Sm=F8rgrav?= <finrod@EWOX.ORG>
  * Subject:      YA Apache DoS attack
index 2b7f957eccb45fa7f941a7867b4fa4592b127b1b..b1a4d557cf67aa6ecca2fa412b5e51e632d80721 100644 (file)
@@ -467,7 +467,7 @@ static void *get_shared_mem(apr_size_t size)
     }
 #endif
 
-#define BADSHMAT       ((void *)(-1))
+#define BADSHMAT  ((void *)(-1))
     if ((result = shmat(shmid, 0, 0)) == BADSHMAT) {
         perror("shmat");
     }
@@ -478,12 +478,12 @@ static void *get_shared_mem(apr_size_t size)
     if (shmctl(shmid, IPC_RMID, NULL) != 0) {
         perror("shmctl(IPC_RMID)");
     }
-    if (result == BADSHMAT)    /* now bailout */
+    if (result == BADSHMAT)  /* now bailout */
         exit(1);
 
 #ifdef MOVEBREAK
     if (obrk == (char *) -1)
-        return;                        /* nothing else to do */
+        return;  /* nothing else to do */
     if (sbrk(-(MOVEBREAK)) == (char *) -1) {
         perror("sbrk 2");
     }
@@ -496,9 +496,9 @@ static void *get_shared_mem(apr_size_t size)
 /* don't ask */
 #define _P __P
 #include <sched.h>
-#define YIELD  sched_yield()
+#define YIELD  sched_yield()
 #else
-#define YIELD  do { struct timeval zero; zero.tv_sec = zero.tv_usec = 0; select(0,0,0,0,&zero); } while(0)
+#define YIELD  do { struct timeval zero; zero.tv_sec = zero.tv_usec = 0; select(0,0,0,0,&zero); } while(0)
 #endif
 
 void main (int argc, char **argv)