From c218159362ff2cf9e7d947ca2867123bed7a091b Mon Sep 17 00:00:00 2001 From: mdw Date: Sat, 1 Jul 2000 11:27:03 +0000 Subject: [PATCH] Portability fix: don't assume that `stdout' is a constant expression. Remove old type name `bbs_param'. --- rspit.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/rspit.c b/rspit.c index e10d05f..c68c11d 100644 --- a/rspit.c +++ b/rspit.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: rspit.c,v 1.4 2000/06/17 12:08:28 mdw Exp $ + * $Id: rspit.c,v 1.5 2000/07/01 11:27:03 mdw Exp $ * * Spit out random numbers * @@ -30,6 +30,10 @@ /*----- Revision history --------------------------------------------------* * * $Log: rspit.c,v $ + * Revision 1.5 2000/07/01 11:27:03 mdw + * Portability fix: don't assume that `stdout' is a constant expression. + * Remove old type name `bbs_param'. + * * Revision 1.4 2000/06/17 12:08:28 mdw * Restructure handling of cipher-based generators. Add counter-mode * ciphers and MGF-1 hash functions. Add FIPS 140-1 and Maurer's tests. @@ -179,7 +183,7 @@ static struct { /*----- Miscellaneous static data -----------------------------------------*/ -static FILE *outfp = stdout; +static FILE *outfp; static size_t outsz = 0; static int argc; @@ -578,7 +582,7 @@ static grand *gen_bbs(unsigned i) m = MP_COPY(kd->u.m); key_close(&kf); } else { - bbs_param bp; + bbs_priv bp; if (bbs_gen(&bp, bits, &rand_global, 0, (flags & f_progress) ? pgen_ev : 0, 0)) @@ -1065,6 +1069,7 @@ int main(int ac, char *av[]) addopts(sopts, opts); argc = ac; argv = av; + outfp = stdout; /* --- Read the generator out of the first argument --- */ -- 2.11.0