From c8a0fb53df045cd4bb2d57da47e3c42e2714ccbe Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 26 Aug 2003 20:20:17 +0000 Subject: In Blowfish_initstate(), make the initstate static, otherwise the compiler will emit code to first copy it onto the stack before copying it into the destination context structure. With this change, it will only be copied once. --- sys/opencrypto/blf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/opencrypto/blf.c b/sys/opencrypto/blf.c index 3e744fa0cd6..a1b85641c86 100644 --- a/sys/opencrypto/blf.c +++ b/sys/opencrypto/blf.c @@ -1,4 +1,4 @@ -/* $NetBSD: blf.c,v 1.1 2003/07/25 21:12:41 jonathan Exp $ */ +/* $NetBSD: blf.c,v 1.2 2003/08/26 20:20:17 thorpej Exp $ */ /* $OpenBSD: blf.c,v 1.4 2002/03/15 18:19:52 millert Exp $ */ /* @@ -42,7 +42,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: blf.c,v 1.1 2003/07/25 21:12:41 jonathan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: blf.c,v 1.2 2003/08/26 20:20:17 thorpej Exp $"); #include #include @@ -126,7 +126,7 @@ Blowfish_initstate(c) /* P-box and S-box tables initialized with digits of Pi */ - const blf_ctx initstate = + static const blf_ctx initstate = { { { -- cgit