Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/crypto/arc4 change arc4_ctx to use unsigned values -- ki...
details: https://anonhg.NetBSD.org/src/rev/18c9b941e064
branches: trunk
changeset: 538570:18c9b941e064
user: perry <perry%NetBSD.org@localhost>
date: Tue Oct 22 21:50:08 2002 +0000
description:
change arc4_ctx to use unsigned values -- kills lint warnings
diffstat:
sys/crypto/arc4/arc4.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r e848b5e43aae -r 18c9b941e064 sys/crypto/arc4/arc4.c
--- a/sys/crypto/arc4/arc4.c Tue Oct 22 21:09:34 2002 +0000
+++ b/sys/crypto/arc4/arc4.c Tue Oct 22 21:50:08 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arc4.c,v 1.2 2001/11/13 01:40:07 lukem Exp $ */
+/* $NetBSD: arc4.c,v 1.3 2002/10/22 21:50:08 perry Exp $ */
/*
* ARC4 implementation
@@ -30,16 +30,16 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arc4.c,v 1.2 2001/11/13 01:40:07 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arc4.c,v 1.3 2002/10/22 21:50:08 perry Exp $");
#include <sys/types.h>
#include <crypto/arc4/arc4.h>
struct arc4_ctx {
- int x;
- int y;
- int state[256];
+ unsigned int x;
+ unsigned int y;
+ unsigned int state[256];
/* was unsigned char, changed to int for performance -- onoe */
};
Home |
Main Index |
Thread Index |
Old Index