summaryrefslogtreecommitdiff
path: root/src/libstdcrypto/rc4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstdcrypto/rc4.c')
-rw-r--r--src/libstdcrypto/rc4.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstdcrypto/rc4.c b/src/libstdcrypto/rc4.c
index e52a706..ea16a82 100644
--- a/src/libstdcrypto/rc4.c
+++ b/src/libstdcrypto/rc4.c
@@ -1,12 +1,13 @@
/* ISC license. */
/* Thanks to Thomas Pornin <pornin@bolet.org> */
+#include <sys/types.h>
#include <skalibs/bytestr.h>
#include <skalibs/rc4.h>
-void rc4 (RC4Schedule *r, char const *in, char *out, unsigned int n)
+void rc4 (RC4Schedule *r, char const *in, char *out, size_t n)
{
- register unsigned int i = 0 ;
+ register size_t i = 0 ;
for (; i < n ; i++)
{
register unsigned char t ;