summaryrefslogtreecommitdiff
path: root/src/libstdcrypto/rc4_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstdcrypto/rc4_init.c')
-rw-r--r--src/libstdcrypto/rc4_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstdcrypto/rc4_init.c b/src/libstdcrypto/rc4_init.c
index 2be9ac3..e5c512d 100644
--- a/src/libstdcrypto/rc4_init.c
+++ b/src/libstdcrypto/rc4_init.c
@@ -4,9 +4,10 @@
#include <skalibs/bytestr.h>
#include <skalibs/rc4.h>
-void rc4_init (RC4Schedule *r, char const *key, unsigned int ksize)
+void rc4_init (RC4Schedule *r, char const *key, size_t ksize)
{
- register unsigned int i = 0, j = 0 ;
+ size_t j = 0 ;
+ register unsigned int i = 0 ;
register unsigned char c = 0;
r->x = r->y = 0 ;