Module Name:    src
Committed By:   pooka
Date:           Tue Jun 30 13:14:40 UTC 2009

Modified Files:
        src/sys/crypto/blowfish: bf_locl.h

Log Message:
Apply const where necessary (XXX: where is bf_locl.org?)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/crypto/blowfish/bf_locl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/crypto/blowfish/bf_locl.h
diff -u src/sys/crypto/blowfish/bf_locl.h:1.4 src/sys/crypto/blowfish/bf_locl.h:1.5
--- src/sys/crypto/blowfish/bf_locl.h:1.4	Sun Dec 11 12:20:48 2005
+++ src/sys/crypto/blowfish/bf_locl.h	Tue Jun 30 13:14:40 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: bf_locl.h,v 1.4 2005/12/11 12:20:48 christos Exp $	*/
+/*	$NetBSD: bf_locl.h,v 1.5 2009/06/30 13:14:40 pooka Exp $	*/
 /*	$KAME: bf_locl.h,v 1.5 2000/08/31 06:03:48 itojun Exp $	*/
 
 /* crypto/bf/bf_local.h */
@@ -187,15 +187,15 @@
 	v=R>>BF_1; \
 	u&=BF_M; \
 	v&=BF_M; \
-	t=  *(BF_LONG *)((unsigned char *)&(S[  0])+u); \
+	t=  *(const BF_LONG *)((const unsigned char *)&(S[  0])+u); \
 	u=R>>BF_2; \
-	t+= *(BF_LONG *)((unsigned char *)&(S[256])+v); \
+	t+= *(const BF_LONG *)((const unsigned char *)&(S[256])+v); \
 	v=R<<BF_3; \
 	u&=BF_M; \
 	v&=BF_M; \
-	t^= *(BF_LONG *)((unsigned char *)&(S[512])+u); \
+	t^= *(const BF_LONG *)((const unsigned char *)&(S[512])+u); \
 	LL^=P; \
-	t+= *(BF_LONG *)((unsigned char *)&(S[768])+v); \
+	t+= *(const BF_LONG *)((const unsigned char *)&(S[768])+v); \
 	LL^=t; \
 	}
 

Reply via email to