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

From: <poeml_at_mirrorbrain.org>
Date: Sat, 28 Nov 2009 15:29:57 -0000
Author: poeml
Date: Sat Nov 28 16:29:57 2009
New Revision: 7876

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7876&view=rev
Log:
mod_mirrorbrain:
- when constructing metalink hashes filenames, change the length modifier in
  the formatting string from a long to a long long unsigned int to account for
  the apr_off_t argument

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=7876&r1=7875&r2=7876&view=diff
==============================================================================
--- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original)
+++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Sat Nov 28 16:29:57 2009
_at_@ -1582,7 +1582,7 @@
         const char *hashfilename;     /* the even newer hash filename contains the size of the file */
         const char *inode_hashfilename;     /* the new hash filename contains the inode of the file */
         const char *old_hashfilename; /* for a transition period - will be depreciated later */
-        hashfilename = apr_psprintf(r->pool, "%s%s.size_%lu", 
+        hashfilename = apr_psprintf(r->pool, "%s%s.size_%llu", 
                                    scfg->metalink_hashes_prefix ? scfg->metalink_hashes_prefix : "", 
                                    r->filename, 
                                    r->finfo.size);




_______________________________________________
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 Sat Nov 28 2009 - 15:29:58 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT