Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/moduli static + __dead
details: https://anonhg.NetBSD.org/src/rev/ff16da6aa5cc
branches: trunk
changeset: 769252:ff16da6aa5cc
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Sep 04 20:55:43 2011 +0000
description:
static + __dead
diffstat:
usr.bin/moduli/qsafe/qsafe.c | 4 ++--
usr.bin/moduli/qsieve/qsieve.c | 32 ++++++++++++++++----------------
2 files changed, 18 insertions(+), 18 deletions(-)
diffs (77 lines):
diff -r 053b1aa6f7ca -r ff16da6aa5cc usr.bin/moduli/qsafe/qsafe.c
--- a/usr.bin/moduli/qsafe/qsafe.c Sun Sep 04 20:54:52 2011 +0000
+++ b/usr.bin/moduli/qsafe/qsafe.c Sun Sep 04 20:55:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qsafe.c,v 1.2 2009/01/18 01:34:30 lukem Exp $ */
+/* $NetBSD: qsafe.c,v 1.3 2011/09/04 20:55:43 joerg Exp $ */
/*-
* Copyright 1994 Phil Karn <karn%qualcomm.com@localhost>
@@ -61,7 +61,7 @@
/* define DEBUGPRINT 1 */
#define TRIAL_MINIMUM (4)
-static void usage(void);
+__dead static void usage(void);
/*
* perform a Miller-Rabin primality test
diff -r 053b1aa6f7ca -r ff16da6aa5cc usr.bin/moduli/qsieve/qsieve.c
--- a/usr.bin/moduli/qsieve/qsieve.c Sun Sep 04 20:54:52 2011 +0000
+++ b/usr.bin/moduli/qsieve/qsieve.c Sun Sep 04 20:55:43 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qsieve.c,v 1.2 2009/01/18 01:34:30 lukem Exp $ */
+/* $NetBSD: qsieve.c,v 1.3 2011/09/04 20:55:43 joerg Exp $ */
/*-
* Copyright 1994 Phil Karn <karn%qualcomm.com@localhost>
@@ -110,34 +110,34 @@
/*
* sieve relative to the initial value
*/
-uint32_t *LargeSieve;
-uint32_t largewords;
-uint32_t largetries;
-uint32_t largenumbers;
-uint32_t largememory; /* megabytes */
-uint32_t largebits;
-BIGNUM *largebase;
+static uint32_t *LargeSieve;
+static uint32_t largewords;
+static uint32_t largetries;
+static uint32_t largenumbers;
+static uint32_t largememory; /* megabytes */
+static uint32_t largebits;
+static BIGNUM *largebase;
/*
* sieve 2**30 in 2**16 parts
*/
-uint32_t *SmallSieve;
-uint32_t smallbits;
-uint32_t smallbase;
+static uint32_t *SmallSieve;
+static uint32_t smallbits;
+static uint32_t smallbase;
/*
* sieve 2**16
*/
-uint32_t *TinySieve;
-uint32_t tinybits;
+static uint32_t *TinySieve;
+static uint32_t tinybits;
-static void usage(void);
-void sieve_large(uint32_t);
+__dead static void usage(void);
+static void sieve_large(uint32_t);
/*
* Sieve p's and q's with small factors
*/
-void
+static void
sieve_large(uint32_t s)
{
BN_ULONG r;
Home |
Main Index |
Thread Index |
Old Index