[libmath-prime-util-perl] 06/13: Add a prototype, remove an unused variable

Partha P. Mukherjee ppm-guest at moszumanska.debian.org
Thu May 21 18:45:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

ppm-guest pushed a commit to annotated tag v0.11
in repository libmath-prime-util-perl.

commit a6ece6105839b2d90b3de4c0d54bd70f54d556d6
Author: Dana Jacobsen <dana at acm.org>
Date:   Thu Jul 19 23:29:31 2012 -0700

    Add a prototype, remove an unused variable
---
 cache.h | 4 ++++
 sieve.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/cache.h b/cache.h
index 9867276..8a50f01 100644
--- a/cache.h
+++ b/cache.h
@@ -8,6 +8,10 @@
 extern void  prime_precalc(UV x);
   /* Release all extra memory -- go back to initial amounts */
 extern void  prime_memfree(void);
+  /* Seriously shut everything down, including destroying mutexes.
+   * This should ONLY be called when we're leaving for good.
+   */
+extern void  _prime_memfreeall(void);
 
   /* Get the primary cache (mod-30 wheel sieve).
    * Try to make sure it contains n.
diff --git a/sieve.c b/sieve.c
index 44c294a..138ca24 100644
--- a/sieve.c
+++ b/sieve.c
@@ -121,7 +121,7 @@ static void sieve_prefill(unsigned char* mem, UV startd, UV endd)
 unsigned char* sieve_erat30(UV end)
 {
   unsigned char* mem;
-  UV max_buf, buffer_words, limit;
+  UV max_buf, limit;
   UV prime;
 
   max_buf = (end/30) + ((end%30) != 0);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-prime-util-perl.git



More information about the Pkg-perl-cvs-commits mailing list