[mirrorbrain-commits] r8195 - /trunk/mod_mirrorbrain/mod_mirrorbrain.c

From: <poeml_at_mirrorbrain.org>
Date: Fri, 05 Nov 2010 12:37:13 -0000
Author: poeml
Date: Fri Nov  5 13:37:12 2010
New Revision: 8195

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8195&view=rev
Log:
mod_mirrorbrain: 
- small cleanup, unifying coding style regarding variable declaration

Modified:
    trunk/mod_mirrorbrain/mod_mirrorbrain.c

Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=8195&r1=8194&r2=8195&view=diff
==============================================================================
--- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original)
+++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Fri Nov  5 13:37:12 2010
_at_@ -491,7 +491,7 @@
 }
 
 static const char *mb_cmd_redirect_stamp_key(cmd_parms *cmd, void *config, 
-                                             const char* arg1)
+                                             const char *arg1)
 {
     mb_dir_conf *cfg = (mb_dir_conf *) config;
     cfg->stampkey = arg1;
_at_@ -1156,10 +1156,10 @@
     char meta_negotiated = 0;                   /* a metalink representation was chosed by negotiation, i.e.
                                                    the server might still decide to return the file itself 
                                                    if it's excluded from redirection by configuration */
-    const char* continent_code;
-    const char* country_code;
-    const char* as;                             /* autonomous system */
-    const char* prefix;                         /* network prefix */
+    const char *continent_code;
+    const char *country_code;
+    const char *as;                             /* autonomous system */
+    const char *prefix;                         /* network prefix */
     int i;
     int mirror_cnt;
     apr_size_t len;
_at_@ -3124,9 +3124,9 @@
 
     /* Build target URI */
     if (cfg->stampkey) {
-        const char* epoch = apr_itoa(r->pool, apr_time_sec(r->request_time));
-        const char* epochkey = apr_pstrcat(r->pool, epoch, " ", cfg->stampkey, NULL);
-        const char* stamp = ap_md5(r->pool, (unsigned const char *)epochkey);
+        const char *epoch = apr_itoa(r->pool, apr_time_sec(r->request_time));
+        const char *epochkey = apr_pstrcat(r->pool, epoch, " ", cfg->stampkey, NULL);
+        const char *stamp = ap_md5(r->pool, (unsigned const char *)epochkey);
 
         debugLog(r, cfg, "stamp: '%s' -> %s", epochkey, stamp);
         uri = apr_pstrcat(r->pool, chosen->baseurl, filename, 




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Fri Nov 05 2010 - 12:37:14 GMT

This archive was generated by hypermail 2.3.0 : Fri Nov 05 2010 - 12:47:07 GMT