gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2340 - GNUnet/src/applications/datastore


From: grothoff
Subject: [GNUnet-SVN] r2340 - GNUnet/src/applications/datastore
Date: Sat, 17 Dec 2005 14:00:19 -0800 (PST)

Author: grothoff
Date: 2005-12-17 14:00:11 -0800 (Sat, 17 Dec 2005)
New Revision: 2340

Modified:
   GNUnet/src/applications/datastore/datastore.c
Log:
fix

Modified: GNUnet/src/applications/datastore/datastore.c
===================================================================
--- GNUnet/src/applications/datastore/datastore.c       2005-12-17 19:08:01 UTC 
(rev 2339)
+++ GNUnet/src/applications/datastore/datastore.c       2005-12-17 22:00:11 UTC 
(rev 2340)
@@ -319,7 +319,7 @@
   lquota
     = getConfigurationInt("FS", "QUOTA");
   quota
-    = lquota * 1024 * 1024; /* MB to bytes */
+    = ((unsigned long long)lquota) * 1024L * 1024L; /* MB to bytes */
   sq = capi->requestService("sqstore");
   if (sq == NULL) {
     BREAK();
@@ -328,7 +328,7 @@
   lquota = htonl(lquota);
   stateWriteContent("FS-LAST-QUOTA",
                    sizeof(unsigned int),
-                   &quota);
+                   &lquota);
 
   coreAPI = capi;
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]