summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2003-08-26 20:20:17 +0000
committerthorpej <thorpej@NetBSD.org>2003-08-26 20:20:17 +0000
commitc8a0fb53df045cd4bb2d57da47e3c42e2714ccbe (patch)
tree1b9df525701690a8556948a942e1f785e0fd3ab9
parent850a45bf66aaa31d310cbff9364f039bb0858d43 (diff)
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.
-rw-r--r--sys/opencrypto/blf.c6
1 files 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 <sys/cdefs.h>
-__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 <sys/param.h>
#include <sys/systm.h>
@@ -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 =
{ {
{